diff --git a/appveyor.yml b/appveyor.yml index fc5e44e7..ba3f8921 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,12 +6,14 @@ branches: platform: - x86 + - x64 init: - git config --global core.autocrlf false install: - - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 + - IF "%PLATFORM%" == "x86" (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat") + - IF "%PLATFORM%" == "x64" (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat") - script\configure.cmd - script\fetch-fixtures.cmd @@ -21,4 +23,4 @@ test_script: build: off cache: - - test\fixtures\grammars \ No newline at end of file + - test\fixtures\grammars diff --git a/project.gyp b/project.gyp index 38f6e551..b9818861 100644 --- a/project.gyp +++ b/project.gyp @@ -162,5 +162,13 @@ '-Wno-unused-parameter' ], }, + + # For 64-bit builds on appveyor, we need to explicitly tell gyp + # to generate an x64 target in the MSVS project file. + 'conditions': [ + ['"