From a6dcc71ab50b1944b46373de3b337edcd5829d81 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Thu, 9 Apr 2020 20:01:51 +0200 Subject: [PATCH] Possibly fix bug causing rebuilds not to work properly --- node_build/make.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_build/make.js b/node_build/make.js index c4c377f1b..191f0c2c4 100644 --- a/node_build/make.js +++ b/node_build/make.js @@ -163,6 +163,7 @@ Builder.configure({ }); } + builder.config.cflags.push(builder.config.optimizeLevel); if (!/^\-O0$/.test(builder.config.optimizeLevel)) { builder.config.cflags.push('-D_FORTIFY_SOURCE=2'); } @@ -193,7 +194,6 @@ Builder.configure({ } else { console.log("Link time optimization not supported [" + err + "]"); } - builder.config.cflags.push(builder.config.optimizeLevel); }); }