|
|
|
@ -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
|
|
|
|
|