Skip to content

Commit

Permalink
AppVeyor: HACK try to workaround node@4.x x64 'undefined' build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Apr 10, 2017
1 parent 4a4d746 commit 4fc10b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/build-appveyor.bat
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ CALL npm-windows-upgrade --npm-version latest --no-dns-check --no-prompt
IF %ERRORLEVEL% NEQ 0 ECHO could not upgrade to latest npm && GOTO ERROR


:: HACK!! to make node@4.x x86 builds work
:: see: https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-217690537
IF %NODE_MAJOR% NEQ 4 GOTO NO_HACK_NEEDED
CALL npm config set -g cafile=package.json
CALL npm config set -g strict-ssl=false

:NO_HACK_NEEDED

ECHO activating VS command prompt...
IF /I %platform% == x64 CALL "C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\vcvarsall.bat" amd64
IF /I %platform% == x86 CALL "C:\Program Files (x86)\Microsoft Visual Studio %msvs_toolset%.0\VC\vcvarsall.bat" x86
Expand Down

0 comments on commit 4fc10b8

Please sign in to comment.