From b28231bf5adecfc3a41179d0d8d7e81486896546 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Sun, 25 Mar 2018 03:04:23 +0200 Subject: [PATCH] Added more advanced optimization flags --- binding.gyp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/binding.gyp b/binding.gyp index f324c30..a77ecee 100644 --- a/binding.gyp +++ b/binding.gyp @@ -21,14 +21,14 @@ "-lboost_date_time", ] }, - "cflags_cc!": [ "-fno-exceptions", "-fno-rtti" ], + "cflags_c": [ + "-std=gnu11 -march=native -fPIC -m64 -DNDEBUG -Ofast -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2" + ], "cflags_cc": [ - "-std=c++0x", - "-fexceptions", - "-frtti", + "-std=gnu++11 -march=native -fPIC -m64 -DNDEBUG -Ofast -s -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2" ], "xcode_settings": { - "OTHER_CFLAGS": ["-fexceptions", "-frtti"] + "OTHER_CFLAGS": [ "-fexceptions -frtti" ] } } ]