Left: | ||
Right: |
OLD | NEW |
---|---|
1 { | 1 { |
2 'variables': { | 2 'variables': { |
3 'visibility%': 'hidden', | 3 'visibility%': 'hidden', |
4 'library%': 'static_library', | 4 'library%': 'static_library', |
5 'component%': '', | 5 'component%': '', |
6 'want_separate_host_toolset': 0, | 6 'want_separate_host_toolset': 0, |
7 'v8_optimized_debug': 0, | 7 'v8_optimized_debug': 0, |
8 'v8_enable_i18n_support': 0, | 8 'v8_enable_i18n_support': 0, |
9 }, | 9 }, |
10 | 10 |
11 'conditions': [ | 11 'conditions': [ |
12 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 12 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
13 or OS=="netbsd" or OS=="android"', { | 13 or OS=="netbsd" or OS=="android"', { |
14 'target_defaults': { | 14 'target_defaults': { |
15 'cflags': [ '-Wall', '-W', '-Wno-unused-parameter', | 15 'cflags': [ '-Wall', '-W', '-Wno-unused-parameter', |
16 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', | 16 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', |
17 '-pedantic', '-std=c++0x', '-fexceptions', ], | 17 '-pedantic', '-std=c++0x', '-fexceptions', '-fpermissive' ], |
Felix Dahlke
2017/03/06 17:00:41
I'm a bit rusty with this build logic, but:
1. Is
hub
2017/03/06 17:41:41
There is no GCC with C++11 support in macOS (they
Felix Dahlke
2017/03/07 07:29:59
I just checked and when I build on my Ubuntu syste
hub
2017/03/07 16:36:18
I haven't figured out how to do that with gyp. The
| |
18 'cflags!': [ '-Werror', ], | 18 'cflags!': [ '-Werror', ], |
19 'ldflags': [ '-pthread', ], | 19 'ldflags': [ '-pthread', ], |
20 }, | 20 }, |
21 }], | 21 }], |
22 ['OS=="mac"', { | 22 ['OS=="mac"', { |
23 'xcode_settings': { | 23 'xcode_settings': { |
24 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', | 24 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', |
25 'CLANG_CXX_LIBRARY': 'libc++', | 25 'CLANG_CXX_LIBRARY': 'libc++', |
26 'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11', '-stdlib=libc++'], | 26 'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11', '-stdlib=libc++'], |
27 }, | 27 }, |
(...skipping 14 matching lines...) Expand all Loading... | |
42 'msvs_cygwin_shell': 0, | 42 'msvs_cygwin_shell': 0, |
43 'target_conditions': [[ | 43 'target_conditions': [[ |
44 'OS=="mac" and _type=="executable"', { | 44 'OS=="mac" and _type=="executable"', { |
45 'xcode_settings': { | 45 'xcode_settings': { |
46 'OTHER_LDFLAGS': ['-stdlib=libc++'], | 46 'OTHER_LDFLAGS': ['-stdlib=libc++'], |
47 }, | 47 }, |
48 } | 48 } |
49 ]], | 49 ]], |
50 } | 50 } |
51 } | 51 } |
OLD | NEW |