summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2021-08-31 20:38:34 -0600
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-09-15 19:04:52 +0430
commitb9e3647e668823aaedd3c6a63f6d0498b4544efd (patch)
tree39d331cb0d52cba802f9a2d874deaa91b6248033 /Toolchain
parent368d2ace551ee3900ab7351d1ffdef477821af1f (diff)
downloadserenity-b9e3647e668823aaedd3c6a63f6d0498b4544efd.zip
Meta+Toolchain: Rename CMAKE_CXXFILT to SERENITY_CXXFILT
The "CMAKE_<foo>" variable namespace is reserved, and CXXFILT is not currently a variable known to upstream CMake.
Diffstat (limited to 'Toolchain')
-rw-r--r--Toolchain/CMake/ClangToolchain.txt.in2
-rw-r--r--Toolchain/CMake/GNUToolchain.txt.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/Toolchain/CMake/ClangToolchain.txt.in b/Toolchain/CMake/ClangToolchain.txt.in
index 10f123bee9..8afcfa2b36 100644
--- a/Toolchain/CMake/ClangToolchain.txt.in
+++ b/Toolchain/CMake/ClangToolchain.txt.in
@@ -24,7 +24,7 @@ set(CMAKE_LINKER ${TOOLCHAIN_PATH}/ld.lld)
set(CMAKE_RANLIB ${TOOLCHAIN_PATH}/llvm-ranlib)
set(CMAKE_STRIP ${TOOLCHAIN_PATH}/llvm-strip)
set(CMAKE_AR ${TOOLCHAIN_PATH}/llvm-ar)
-set(CMAKE_CXXFILT ${TOOLCHAIN_PATH}/llvm-cxxfilt)
+set(SERENITY_CXXFILT ${TOOLCHAIN_PATH}/llvm-cxxfilt)
# FIXME: Persuade LLVM maintainers to add `--update-section` to llvm-objcopy, as it's required for the kernel symbol map.
set(CMAKE_OBJCOPY ${TOOLCHAIN_ROOT}/binutils/bin/@SERENITY_ARCH@-pc-serenity-objcopy)
diff --git a/Toolchain/CMake/GNUToolchain.txt.in b/Toolchain/CMake/GNUToolchain.txt.in
index 9a0a2efdc8..eb7d3d6764 100644
--- a/Toolchain/CMake/GNUToolchain.txt.in
+++ b/Toolchain/CMake/GNUToolchain.txt.in
@@ -22,7 +22,7 @@ set(CMAKE_RANLIB ${TOOLCHAIN_PREFIX}gcc-ranlib)
set(CMAKE_STRIP ${TOOLCHAIN_PREFIX}strip)
set(CMAKE_AR ${TOOLCHAIN_PREFIX}gcc-ar)
set(CMAKE_OBJCOPY ${TOOLCHAIN_PREFIX}objcopy)
-set(CMAKE_CXXFILT ${TOOLCHAIN_PREFIX}c++filt)
+set(SERENITY_CXXFILT ${TOOLCHAIN_PREFIX}c++filt)
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--hash-style=gnu,-z,relro,-z,now,-z,noexecstack,-z,max-page-size=0x1000,-z,separate-code")