mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
PellesC: Fix architecture detection when enabling both C and ASM_POASM
We detect the architecture once and store it in `_PellesC_ARCH`.
Do not unset it after the first language is enabled.
This fixes commit bc51518821 (PellesC: Compile for architecture matching
LIB environment variable, 2026-05-07) by removing lines left from an
earlier draft of the change.
Issue: #21536
Reported-by: Serguei E. Leontiev <leo@sai.msu.ru>
This commit is contained in:
@@ -21,4 +21,3 @@ string(APPEND CMAKE_ASM_POASM_FLAGS_RELWITHDEBINFO_INIT " -Zi")
|
||||
string(APPEND CMAKE_ASM_POASM_FLAGS_MINSIZEREL_INIT "")
|
||||
|
||||
unset(_PellesC_ASM_POASM_FLAGS)
|
||||
unset(_PellesC_ARCH)
|
||||
|
||||
@@ -39,4 +39,3 @@ set(CMAKE_C_STANDARD_LIBRARIES_INIT "kernel32.lib user32.lib gdi32.lib winspool.
|
||||
|
||||
unset(_PellesC_C_OBJ_FLAGS)
|
||||
unset(_PellesC_C_ASM_FLAGS)
|
||||
unset(_PellesC_ARCH)
|
||||
|
||||
Reference in New Issue
Block a user