Skip to content

Conversation

@GeorgeLyon
Copy link
Contributor

Currently, If the C or C++ compiler supports the -gsplit-dwarf option, it is added to all compilers. If a project decides to use another language, such as Swift, this option will be sent to that compiler as well, regardless whether that compiler supports it or not (Swift does not). This patch uses generator expressions to limit the -gsplit-dwarf option to only those compilers that can support it (C and C++).

@llvmbot llvmbot added the cmake Build system in general and CMake in particular label Sep 23, 2023
@GeorgeLyon GeorgeLyon changed the title [CMake] Limit -gsplit-dwarf option to the C and C++ compiler [cmake] Limit -gsplit-dwarf option to the C and C++ compiler Oct 14, 2023
@GeorgeLyon GeorgeLyon requested a review from tambry October 14, 2023 19:10
@tambry tambry merged commit d5e91ca into llvm:main Oct 15, 2023
@GeorgeLyon GeorgeLyon deleted the gsplit-dwarf branch October 15, 2023 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Build system in general and CMake in particular

3 participants