[all-commits] [llvm/llvm-project] d5e91c: [CMake] Limit -gsplit-dwarf option to C and C++ co...
George Lyon via All-commits
all-commits at lists.llvm.org
Sun Oct 15 09:59:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d5e91ca5633e630f97777d96103aba3fa1247080
https://github.com/llvm/llvm-project/commit/d5e91ca5633e630f97777d96103aba3fa1247080
Author: George Lyon <GeorgeLyon at users.noreply.github.com>
Date: 2023-10-15 (Sun, 15 Oct 2023)
Changed paths:
M llvm/cmake/modules/HandleLLVMOptions.cmake
Log Message:
-----------
[CMake] Limit -gsplit-dwarf option to C and C++ compilers
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 doesnot).
This patch uses [generator expressions](https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html) to limit the `-gsplit-dwarf` option to only those compilers that support it (C and C++).
More information about the All-commits
mailing list