summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-23 14:36:17 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-09-23 14:36:27 (GMT)
commitc5b91304edaddd82992140e5b36533509c95b20f (patch)
tree3b112b83c6ddbc2d1308aa0d20b517aca588195a /Modules/Compiler/IAR.cmake
parente83a5f9cac21bac84e4d44b7a12dc7d11dbda9a4 (diff)
parentb1727b8a7e7e9237bfa1363b088ac17020d629ef (diff)
downloadCMake-c5b91304edaddd82992140e5b36533509c95b20f.zip
CMake-c5b91304edaddd82992140e5b36533509c95b20f.tar.gz
CMake-c5b91304edaddd82992140e5b36533509c95b20f.tar.bz2
Merge topic 'iar-asm-deduplication'
b1727b8a7e IAR: ASM module code deduplication Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6553
Diffstat (limited to 'Modules/Compiler/IAR.cmake')
-rw-r--r--Modules/Compiler/IAR.cmake16
1 files changed, 0 insertions, 16 deletions
diff --git a/Modules/Compiler/IAR.cmake b/Modules/Compiler/IAR.cmake
index dc48cda..9382c3f 100644
--- a/Modules/Compiler/IAR.cmake
+++ b/Modules/Compiler/IAR.cmake
@@ -58,14 +58,6 @@ macro(__compiler_iar_ilink lang)
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -Oh -r -DNDEBUG")
endif()
- if (${lang} STREQUAL "ASM")
- string(APPEND CMAKE_ASM_FLAGS_INIT " ")
- string(APPEND CMAKE_ASM_FLAGS_DEBUG_INIT " -r")
- string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
- string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -DNDEBUG")
- string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -r -DNDEBUG")
- endif()
-
set(CMAKE_${lang}_LINK_EXECUTABLE "<CMAKE_LINKER> --silent <OBJECTS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES> -o <TARGET>")
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY "<CMAKE_AR> <TARGET> --create <LINK_FLAGS> <OBJECTS>")
set(CMAKE_${lang}_ARCHIVE_CREATE "<CMAKE_AR> <TARGET> --create <LINK_FLAGS> <OBJECTS>")
@@ -91,14 +83,6 @@ macro(__compiler_iar_xlink lang)
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -Oh -r -DNDEBUG")
endif()
- if (${lang} STREQUAL "ASM")
- string(APPEND CMAKE_ASM_FLAGS_INIT " ")
- string(APPEND CMAKE_ASM_FLAGS_DEBUG_INIT " -r")
- string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
- string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -DNDEBUG")
- string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -r -DNDEBUG")
- endif()
-
set(CMAKE_${lang}_LINK_EXECUTABLE "<CMAKE_LINKER> -S <OBJECTS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES> -o <TARGET>")
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY "<CMAKE_AR> <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_${lang}_ARCHIVE_CREATE "<CMAKE_AR> <TARGET> <LINK_FLAGS> <OBJECTS>")