@@ -41,6 +41,19 @@
|
41 | 41 | 'AdditionalOptions': ['/utf-8'] |
42 | 42 | } |
43 | 43 | }, |
| 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 | + ], |
44 | 57 | }, |
45 | 58 | 'targets': [ |
46 | 59 | { |
|