Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Disables Thread-Safe for local static variables #1350

Merged
merged 1 commit into from
Jan 20, 2016
Merged

Conversation

am11
Copy link
Contributor

@am11 am11 commented Jan 20, 2016

Fixes #1283.

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2016

@xzyfer, @saper, PTAL.

@saper
Copy link
Member

saper commented Jan 20, 2016

I don't think this is a good idea for one reason. As long as the node releases are built with VS2013 we have to keep compatibility with C++. I don't want to waste 3 days on yet-another-C++-runtime incompatibility the next time we encounter something.

We should simply build with the same compiler and possibly with the same flags as the node engine.

I'll be submitting patch to node and node-gyp to let us know the original PlatformToolset used, so we can possibly use VS2015 in v120 mode to compile node-sass.

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2016

The cflag is only applied to 2015. This doesn't effect VS2013.

@saper
Copy link
Member

saper commented Jan 20, 2016

I understand. We should really use PlatformToolset to set things straight on VS2015 (if that is confirmed working, I didn't try yet).

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2016

@saper, I don't think you are understanding it correctly
v120 = VS2013
v140 = VS2015.
If someone has BuiltTools2015 installed, they will not be able to build node-sass because it doesn't have v120 at all. If someone has VS2015 installed without VS2013 toolset (which is optional in the install menu), they will missed out too. Having a compiler flag in gyp file is not yet-another-hassle, we already have flags for other compiler in the same place.

@saper
Copy link
Member

saper commented Jan 20, 2016 via email

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2016

We actually need to tell people using node-gyp to use vs2013 or vs2015

If someone has VS2015 installed without legacy stuff or BuildTools2015, they will not have v120 targets.

@saper
Copy link
Member

saper commented Jan 20, 2016 via email

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2016

This change should not effect our binaries built from VS2013.

@saper
Copy link
Member

saper commented Jan 20, 2016 via email

@am11
Copy link
Contributor Author

am11 commented Jan 20, 2016

TLDR: the change in appveyor.yml was not meant for this PR. I have reverted it back. #1352 will take care of AppVeyor. This change remained with zero side effects.

am11 added a commit that referenced this pull request Jan 20, 2016
Disables Thread-Safe for local static variables
@am11 am11 merged commit eafd9c9 into sass:master Jan 20, 2016
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this pull request Apr 7, 2024
Fix special eval case for `String_Schema`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants