Skip to content

Commit b6d50ee

Browse files
committed
Merge branch 'master' into fix-cpp-tests
2 parents 8408009 + 90bc20c commit b6d50ee

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

binding.gyp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"variables": {
7070
"tests": 0,
7171
"STANDARD": 17,
72-
"MACOSX_DEPLOYMENT_TARGET": "10.8"
72+
"MACOSX_DEPLOYMENT_TARGET": "10.15"
7373
},
7474

7575
"conditions": [
@@ -119,7 +119,7 @@
119119
['OS=="mac"', {
120120
"xcode_settings": {
121121
'CLANG_CXX_LIBRARY': 'libc++',
122-
'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
122+
'CLANG_CXX_LANGUAGE_STANDARD':'c++(STANDARD)',
123123
}
124124
}],
125125
['OS=="win"', {
@@ -136,8 +136,8 @@
136136
# Release Settings
137137
'Release': {
138138
'defines': [ 'NDEBUG' ],
139-
"cflags": [ "-fno-exceptions", "-Ofast" ],
140-
"cflags_cc": [ "-fno-exceptions", "-Ofast", "-std=c++<(STANDARD)" ],
139+
"cflags": [ "-fno-exceptions", "-O3" ],
140+
"cflags_cc": [ "-fno-exceptions", "-O3", "-std=c++<(STANDARD)" ],
141141
"xcode_settings": {
142142
'GCC_OPTIMIZATION_LEVEL': '3', # stop gyp from defaulting to -Os
143143
"CLANG_CXX_LIBRARY": "libc++",

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"browser": "./browser",
77
"scripts": {
88
"build:node": "node-gyp rebuild",
9-
"build:browser": "script/build-browser-version.sh",
9+
"build:browser": "bash -c script/build-browser-version.sh || echo 'the browser build is unsupported'",
1010
"build": "npm run build:node && npm run build:browser",
1111
"test:native": "node-gyp build --debug --tests && node script/test-native.js",
1212
"test:node": "mocha test/js/*.js",
13-
"test:browser": "SUPERSTRING_USE_BROWSER_VERSION=1 mocha test/js/*.js",
14-
"test": "npm run test:node && npm run test:browser",
13+
"test:browser": "cross-env SUPERSTRING_USE_BROWSER_VERSION=1 mocha test/js/*.js || echo 'the browser tests are unsupported'",
14+
"test": "npm run test:node && npm run test:native && npm run test:browser",
1515
"benchmark": "node benchmark/marker-index.benchmark.js",
1616
"prepublishOnly": "git submodule update --init --recursive && npm run build:browser",
1717
"standard": "standard --recursive src test"
@@ -35,6 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"chai": "^2.0.0",
38+
"cross-env": "^7.0.3",
3839
"mocha": "^2.3.4",
3940
"random-seed": "^0.2.0",
4041
"standard": "^4.5.4",

0 commit comments

Comments
 (0)