From 75e98477e342d8edd845f66fdc7146f9d0ded21a Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 24 Nov 2025 14:49:19 -0500 Subject: [PATCH] Emscripten: Restore placement of source files on compile command-lines Since commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16, v4.2.0-rc1~607^2~3), compilation command-lines for Emscripten place `-c ` before all the flags. Restore the original order. Fixes: #27404 --- Modules/Platform/Emscripten-Clang.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Platform/Emscripten-Clang.cmake b/Modules/Platform/Emscripten-Clang.cmake index 99000360bf..6d9a64574c 100644 --- a/Modules/Platform/Emscripten-Clang.cmake +++ b/Modules/Platform/Emscripten-Clang.cmake @@ -17,5 +17,5 @@ macro(__emscripten_clang lang) set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_OBJECTS 1) set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1) set(CMAKE_${lang}_COMPILE_OBJECT - " -c -o -fPIC") + " -o -c -fPIC") endmacro()