From f4b4e1996d44945c800dc3e46813dd229ad5aa67 Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Wed, 14 Aug 2019 13:03:02 +0200 Subject: [PATCH] Disable LTO in Linux x64 build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 36e3b87..4159b82 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "browserify": "browserify -r ./lib/config/context.js:context -r ./lib/http-then.js:http-then -r ./lib/kubebox.js:kubebox -r ./lib/task.js:task -r blessed -r urijs -i clipboardy -u pty.js -u xterm -u term.js -o docs/kubebox.js", "browserify-debug": "browserify --debug -r ./lib/config/context.js:context -r ./lib/http-then.js:http-then -r ./lib/kubebox.js:kubebox -r ./lib/task.js:task -r blessed -r urijs -i clipboardy -u pty.js -u xterm -u term.js | exorcist docs/kubebox.js.map > docs/kubebox.js", "bundle": "browserify index.js -o bundle.js -u pty.js -u term.js -u spawn-sync --node", - "executable-linux-x64": "npm run bundle && export CXXFLAGS=\"-O3 -ffunction-sections -fdata-sections\" && export LDFLAGS=\"-Wl,--gc-sections,--strip-all\" && cat bundle.js | nexe -b -c=--enable-lto -c=--fully-static -c=--without-npm -c=--without-dtrace -c=--without-inspector -c=--without-etw -c=--without-perfctr -m=-j$(getconf _NPROCESSORS_ONLN) -t x64-10.16.0 -o kubebox --verbose", + "executable-linux-x64": "npm run bundle && export CXXFLAGS=\"-O3 -ffunction-sections -fdata-sections\" && export LDFLAGS=\"-Wl,--gc-sections,--strip-all\" && cat bundle.js | nexe -b -c=--fully-static -c=--without-npm -c=--without-dtrace -c=--without-inspector -c=--without-etw -c=--without-perfctr -m=-j$(getconf _NPROCESSORS_ONLN) -t x64-10.16.0 -o kubebox --verbose", "executable-linux-arm": "export CXXFLAGS=\"-O3 -ffunction-sections -fdata-sections\" && export LDFLAGS=\"-Wl,-latomic,--gc-sections,--strip-all\" && cat bundle.js | nexe -b -c=--fully-static -c=--without-npm -c=--without-dtrace -c=--without-inspector -c=--without-etw -c=--without-perfctr --configure=--with-arm-float-abi=hard --configure=--with-arm-fpu=neon -m=-j$(getconf _NPROCESSORS_ONLN) -t arm-10.16.0 -o kubebox --verbose", "executable-macos": "npm run bundle && cat bundle.js | nexe -t macos-10.16.0 -o kubebox", "executable-windows": "npm run bundle && cat bundle.js | nexe -t win-10.16.0 -o kubebox"