|
85 | 85 | } |
86 | 86 | }], |
87 | 87 | ['OS=="win"', { |
88 | | - 'sources': [ |
| 88 | + 'sources': [ |
89 | 89 | 'vendor/win-iconv/win_iconv.c', |
90 | 90 | ], |
91 | 91 | 'include_dirs': [ |
|
148 | 148 | "targets": [{ |
149 | 149 | "target_name": "tests", |
150 | 150 | "type": "executable", |
| 151 | + "cflags_cc": ["-std=c++17"], |
151 | 152 | "cflags_cc!": ["-fno-exceptions"], |
152 | 153 | "defines": [ |
153 | | - "CATCH_CONFIG_CPP11_NO_IS_ENUM" |
| 154 | + "CATCH_CONFIG_CPP11_NO_IS_ENUM", |
| 155 | + "CATCH_CONFIG_CPP17_STRING_VIEW" |
154 | 156 | ], |
| 157 | + 'xcode_settings': { |
| 158 | + 'CLANG_CXX_LIBRARY': 'libc++', |
| 159 | + 'CLANG_CXX_LANGUAGE_STANDARD': 'c++17', |
| 160 | + }, |
155 | 161 | "sources": [ |
156 | 162 | "test/native/test-helpers.cc", |
157 | 163 | "test/native/tests.cc", |
|
160 | 166 | "test/native/text-buffer-test.cc", |
161 | 167 | "test/native/text-test.cc", |
162 | 168 | "test/native/text-diff-test.cc", |
| 169 | + "vendor/catch_amalgamated.cpp" |
163 | 170 | ], |
164 | 171 | "include_dirs": [ |
165 | 172 | "vendor", |
|
175 | 182 | ], |
176 | 183 | "xcode_settings": { |
177 | 184 | "GCC_ENABLE_CPP_EXCEPTIONS": "YES", |
178 | | - 'MACOSX_DEPLOYMENT_TARGET': '10.8', |
| 185 | + 'MACOSX_DEPLOYMENT_TARGET': '10.12', |
179 | 186 | } |
180 | 187 | }] |
181 | 188 | ] |
|
189 | 196 | ['OS=="mac"', { |
190 | 197 | "xcode_settings": { |
191 | 198 | 'CLANG_CXX_LIBRARY': 'libc++', |
192 | | - 'CLANG_CXX_LANGUAGE_STANDARD':'c++11', |
| 199 | + 'CLANG_CXX_LANGUAGE_STANDARD': 'c++17', |
| 200 | + 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
193 | 201 | } |
194 | 202 | }], |
195 | 203 | ['OS=="win"', { |
|
0 commit comments