We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7954df3 commit eac7372Copy full SHA for eac7372
build/configs/toolchain_linux_x86_64.cmake
@@ -15,7 +15,9 @@
15
set(CMAKE_SYSTEM_NAME Linux)
16
set(CMAKE_SYSTEM_PROCESSOR x86_64)
17
18
-set(CMAKE_C_COMPILER x86_64-linux-gnu-gcc)
19
-set(CMAKE_CXX_COMPILER x86_64-linux-gnu-g++)
+find_program(CMAKE_C_COMPILER NAMES x86_64-linux-gnu-gcc x86_64-unknown-linux-gnu-gcc)
+find_program(CMAKE_CXX_COMPILER NAMES x86_64-linux-gnu-g++ x86_64-unknown-linux-gnu-g++)
20
+# FIXME: This could break cross compilation, when the strip is not for the target architecture
21
+find_program(CMAKE_STRIP NAMES x86_64-linux-gnu-strip x86_64-unknown-linux-gnu-strip strip)
22
23
set(FLAGS_COMMON_ARCH -ffixed-rbp)
0 commit comments