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:
Brad King
2026-05-19 10:12:36 -04:00
parent 485b155cb9
commit 0e3c395205
2 changed files with 0 additions and 2 deletions
@@ -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)
-1
View File
@@ -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)