| Index: common.gypi |
| =================================================================== |
| --- a/common.gypi |
| +++ b/common.gypi |
| @@ -9,17 +9,17 @@ |
| ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
| or OS=="netbsd" or OS=="android"', { |
| 'target_defaults': { |
| 'cflags': [ '-pthread' ], |
| # V8 headers cause a build error on recent gcc. |
| # Adding -fpermissive to solve this. |
| # See https://issues.adblockplus.org/ticket/4950 |
| # We might be able to do without after upgrading V8. |
| - 'cflags_cc': [ '-fno-rtti', '-std=c++14', '-fexceptions', '-fpermissive' ], |
| + 'cflags_cc': [ '-fno-rtti', '-std=c++14', '-fexceptions', '-fpermissive', '-stdlib=libc++' ], |
| 'cflags!': [ '-Werror', ], |
| 'ldflags': [ '-pthread', ], |
| }, |
| }], |
| ['OS=="mac"', { |
| 'xcode_settings': { |
| 'CLANG_CXX_LANGUAGE_STANDARD': 'c++14', |
| 'CLANG_CXX_LIBRARY': 'libc++', |