Skip to content

Commit 71544c5

Browse files
committed
build: remove -f{data,function}-sections flags
We don't link with `--gc-sections` because it's unreliable with some toolchains, so all these flags do is make the compiler generate slightly worse code. Drop them. Refs: nodejs#6056 PR-URL: nodejs#6077 Reviewed-By: Trevor Norris <[email protected]>
1 parent 3a8e823 commit 71544c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
'variables': {
9696
'v8_enable_handle_zapping': 0,
9797
},
98-
'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
98+
'cflags': [ '-O3' ],
9999
'conditions': [
100100
['target_arch=="x64"', {
101101
'msvs_configuration_platform': 'x64',

0 commit comments

Comments
 (0)