File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,13 @@ environment:
7
7
matrix :
8
8
- Compiler : msvc
9
9
Config : Release
10
+ Platform : Win32
10
11
- Compiler : msvc
11
12
Config : Debug
13
+ Platform : Win32
14
+ - Compiler : msvc
15
+ Config : Release
16
+ Platform : Win64
12
17
- Compiler : mingw
13
18
Build : static
14
19
- Compiler : mingw
@@ -38,7 +43,7 @@ build_script:
38
43
if ($env:Compiler -eq "mingw") {
39
44
mingw32-make -j4 sassc
40
45
} else {
41
- msbuild /m:4 /p:Configuration=$env:Config sassc\win\sassc.sln
46
+ msbuild /m:4 /p:" Configuration=$env:Config;Platform=$env:Platform" sassc\win\sassc.sln
42
47
}
43
48
44
49
# print the branding art
@@ -84,4 +89,3 @@ test_script:
84
89
} else {
85
90
echo "Success!"
86
91
}
87
-
Original file line number Diff line number Diff line change 9
9
10
10
#include < cmath>
11
11
#include < stdint.h>
12
+ #if defined(_MSC_VER) && _MSC_VER >= 1800 && _MSC_VER < 1900 && defined(_M_X64)
13
+ #include < mutex>
14
+ #endif
12
15
13
16
namespace Sass {
14
17
15
18
double round (double val, size_t precision)
16
19
{
20
+ // Disable FMA3-optimized implementation when compiling with VS2013 for x64 targets
21
+ // See https://github.com/sass/node-sass/issues/1854 for details
22
+ // FIXME: Remove this workaround when we switch to VS2015+
23
+ #if defined(_MSC_VER) && _MSC_VER >= 1800 && _MSC_VER < 1900 && defined(_M_X64)
24
+ static std::once_flag flag;
25
+ std::call_once (flag, []() { _set_FMA3_enable (0 ); });
26
+ #endif
27
+
17
28
// https://github.com/sass/sass/commit/4e3e1d5684cc29073a507578fc977434ff488c93
18
29
if (fmod (val, 1 ) - 0.5 > - std::pow (0.1 , precision + 1 )) return std::ceil (val);
19
30
else if (fmod (val, 1 ) - 0.5 > std::pow (0.1 , precision)) return std::floor (val);
You can’t perform that action at this time.
0 commit comments