From 1940a31359e56eae13fd1bbab88f3264375d9d4d Mon Sep 17 00:00:00 2001 From: TotallyNotElite Date: Sun, 28 Feb 2021 12:00:57 +0100 Subject: [PATCH] Build -march=x86-64 in binary mode --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73e0226d..04e68302 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,6 +194,9 @@ if(EnableWarnings) else() target_compile_options(cathook PRIVATE -w) endif() +if(Internal_Binarymode) + target_compile_options(cathook PRIVATE -march=x86-64) +endif() target_include_directories(cathook PRIVATE include include/hooks)