aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Platforms/x86_64.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/Platforms/x86_64.cmake b/cmake/Platforms/x86_64.cmake
index 6e99b62..e0518b5 100644
--- a/cmake/Platforms/x86_64.cmake
+++ b/cmake/Platforms/x86_64.cmake
@@ -1,4 +1,4 @@
-execute_process(COMMAND "x86_64-elf-g++" "-mno-red-zone" "-print-file-name=crtbegin.o"
+execute_process(COMMAND "x86_64-pc-elf-g++" "-mno-red-zone" "-print-file-name=crtbegin.o"
OUTPUT_VARIABLE CRT_BEGIN
ERROR_QUIET
)
@@ -12,8 +12,8 @@ set(SYSTEM_NAME "Generic")
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
-set(CMAKE_C_COMPILER "x86_64-elf-gcc")
-set(CMAKE_CXX_COMPILER "x86_64-elf-g++")
+set(CMAKE_C_COMPILER "x86_64-pc-elf-gcc")
+set(CMAKE_CXX_COMPILER "x86_64-pc-elf-g++")
set(CMAKE_CXX_FLAGS_INIT "-m64 -mno-red-zone -mcmodel=large -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections")
set(CMAKE_CXX_FLAGS_DEBUG "-ggdb3")
@@ -32,4 +32,4 @@ set(CMAKE_CXX_LINK_EXECUTABLE
<LINK_LIBRARIES> \
-lgcc \
${CMAKE_SYSROOT}/crtend.o"
-) \ No newline at end of file
+)