From 82dc058284075f5e005095d2e0a606a75e42fa91 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Sat, 13 Mar 2021 11:56:40 +0100 Subject: [PATCH] Changements d'options --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d6c7b3..9b98629 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,23 +20,27 @@ set(COMPILE_DEFINITIONS set(COMPILE_FLAGS -pipe - -march=skylake # change to native or your architecture. - -mtune=skylake # same as above + -march=native # change to native or your architecture. + -mtune=native # same as above -mrdseed # be careful about this, this is linked to the x86 architecture. -mrdrnd # same as above -stdlib=libc++ -Wpedantic + -pedantic -Wall -Wextra -Wmove -Wopenmp + -ffunction-sections + -fdata-sections -funroll-loops -flto=thin -fwhole-program-vtables -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free ) set(LINKER_OPTIONS - -Wl,--sort-common,--as-needed + -Wl,--sort-common,--as-needed,--gc-sections,--strip-all + -s -stdlib=libc++ -flto=thin -fwhole-program-vtables