◐ Shell
clean mode source ↗

build: build v8 with -fvisibility=hidden on macOS · nodejs/node@1cc8d69

Original file line numberDiff line numberDiff line change

@@ -41,6 +41,19 @@

4141

'AdditionalOptions': ['/utf-8']

4242

}

4343

},

44+

'conditions': [

45+

['OS=="mac"', {

46+

# Hide symbols that are not explicitly exported with V8_EXPORT.

47+

# TODO(joyeecheung): enable it on other platforms. Currently gcc times out

48+

# or run out of memory with -fvisibility=hidden on some machines in the CI.

49+

'xcode_settings': {

50+

'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden

51+

},

52+

'defines': [

53+

'BUILDING_V8_SHARED', # Make V8_EXPORT visible.

54+

],

55+

}],

56+

],

4457

},

4558

'targets': [

4659

{