Skip to content

Commit

Permalink
Disables Thread-Safe for local static variables.
Browse files Browse the repository at this point in the history
Fixes sass#1283.
  • Loading branch information
am11 committed Jan 20, 2016
1 parent cd70fbd commit 869dd66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
- node --version
- npm --version
- git submodule update --init --recursive
- npm install --msvs_version=2015
- npm config set msvs_version 2015 --global
- npm install

test_script: npm test

Expand Down Expand Up @@ -87,6 +88,7 @@
- node --version
- npm --version
- git submodule update --init --recursive
- npm install --msvs_version=2015
- npm config set msvs_version 2015 --global
- npm install

test_script: npm test
10 changes: 10 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@
'MACOSX_DEPLOYMENT_TARGET': '10.7'
}
}],
['OS=="win" and MSVS_VERSION == "2015"', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
# disable Thread-Safe "Magic" for local static variables
'/Zc:threadSafeInit-',
],
},
},
}],
['OS!="win"', {
'cflags_cc+': [
'-std=c++0x'
Expand Down

0 comments on commit 869dd66

Please sign in to comment.