Skip to content

Comments

Only enable cmake response files on windows#26312

Merged
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:cmake_rsp_files_windows
Feb 20, 2026
Merged

Only enable cmake response files on windows#26312
sbc100 merged 1 commit intoemscripten-core:mainfrom
sbc100:cmake_rsp_files_windows

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Feb 20, 2026

This matches GCC and Clang do on in upstream/native CMake toolchains do:

Modules/Platform/Emscripten-Clang.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
Modules/Platform/Windows-Clang.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
Modules/Platform/Windows-Embarcadero.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
Modules/Platform/Windows-GNU.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)

i.e. GCC and Clang don't use these settings except on windows.

This matches GCC and Clang do on in upstream/native CMake toolchains do:

```
Modules/Platform/Emscripten-Clang.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
Modules/Platform/Windows-Clang.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
Modules/Platform/Windows-Embarcadero.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
Modules/Platform/Windows-GNU.cmake:  set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_INCLUDES 1)
```

i.e. GCC and Clang don't use these settings except on windows.
@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 20, 2026

@lygstate

@sbc100 sbc100 requested a review from kripken February 20, 2026 19:11
@lygstate
Copy link

rb

@lygstate
Copy link

seems other cmake file use lang variable, maybe this can also use it

@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 20, 2026

seems other cmake file use lang variable, maybe this can also use it

Yes, we could write a loop here I guess, but I think it would end up being about the same number of lines, no?

@sbc100 sbc100 merged commit 88b2812 into emscripten-core:main Feb 20, 2026
36 checks passed
@sbc100 sbc100 deleted the cmake_rsp_files_windows branch February 20, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants