aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Platforms/x86_64.cmake23
1 files changed, 0 insertions, 23 deletions
diff --git a/cmake/Platforms/x86_64.cmake b/cmake/Platforms/x86_64.cmake
deleted file mode 100644
index 9e727cf..0000000
--- a/cmake/Platforms/x86_64.cmake
+++ /dev/null
@@ -1,23 +0,0 @@
-execute_process(COMMAND "x86_64-none-elf-g++" "-print-file-name=crtbegin.o"
- OUTPUT_VARIABLE CRT_BEGIN
- ERROR_QUIET
-)
-string(STRIP "${CRT_BEGIN}" CRT_BEGIN)
-mark_as_advanced(CRT_BEGIN)
-
-string(REGEX REPLACE "/crtbegin.o" "" CMAKE_SYSROOT "${CRT_BEGIN}")
-mark_as_advanced(CMAKE_SYSROOT)
-
-set(CMAKE_CXX_FLAGS_INIT "-m64 -mno-red-zone -mcmodel=large")
-set(CMAKE_EXE_LINKER_FLAGS_INIT "-nostartfiles")
-set(CMAKE_CXX_LINK_EXECUTABLE
- "<CMAKE_CXX_COMPILER> \
- <FLAGS> \
- <CMAKE_CXX_LINK_FLAGS> \
- <LINK_FLAGS> \
- ${CMAKE_SYSROOT}/crtbegin.o \
- <OBJECTS> \
- -o <TARGET> \
- <LINK_LIBRARIES> \
- ${CMAKE_SYSROOT}/crtend.o"
-)