Skip to content

Commit 8952330

Browse files
bnoordhuisMyles Borins
authored and
Myles Borins
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: #6056 PR-URL: #6077 Reviewed-By: Trevor Norris <[email protected]>
1 parent 8ab2d73 commit 8952330

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)