File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -32,24 +32,23 @@ configuration:
32
32
33
33
environment :
34
34
VS_VERSION : vs2017
35
- BUILD_PLATFORM : ' x86'
36
35
DEPS_PATH : ' %APPVEYOR_BUILD_FOLDER%\deps'
37
36
LLVM_PATH : ' %APPVEYOR_BUILD_FOLDER%\deps\llvm'
38
37
BUILD_PATH : ' %APPVEYOR_BUILD_FOLDER%\build\%VS_VERSION%'
39
- LIB_PATH : ' %APPVEYOR_BUILD_FOLDER%\build\%VS_VERSION%\lib\%CONFIGURATION%_%BUILD_PLATFORM %'
40
- ARTIFACT_NAME : ' %APPVEYOR_PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%VS_VERSION%-%BUILD_PLATFORM %.zip'
38
+ LIB_PATH : ' %APPVEYOR_BUILD_FOLDER%\build\%VS_VERSION%\lib\%CONFIGURATION%_%PLATFORM %'
39
+ ARTIFACT_NAME : ' %APPVEYOR_PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%VS_VERSION%-%PLATFORM %.zip'
41
40
GITHUB_ACCESS_TOKEN :
42
41
secure : CrxPDgxTKC9ZRvFjttpRPO+e1DT8s0Zkk9HrAmHOIzDkOfFbbu1iTm/yJjZ2eDcd
43
42
44
43
init :
45
44
- git config --global core.autocrlf true
46
45
47
46
install :
48
- - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32 .bat"
49
- - build\premake5.exe --file=build\scripts\LLVM.lua download_llvm
47
+ - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall .bat" %PLATFORM%
48
+ - build\premake5.exe --file=build\scripts\LLVM.lua download_llvm --arch=%PLATFORM%
50
49
51
50
build_script :
52
- - build\premake5.exe --file=build\premake5.lua %VS_VERSION%
51
+ - build\premake5.exe --file=build\premake5.lua %VS_VERSION% --arch=%PLATFORM%
53
52
- msbuild %BUILD_PATH%\CppSharp.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal
54
53
55
54
# ---------------------------------#
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ function target_architecture()
28
28
return " AnyCPU"
29
29
end
30
30
31
- -- Default to 32 -bit on Windows and Mono architecture otherwise.
31
+ -- Default to 64 -bit on Windows and Mono architecture otherwise.
32
32
if explicit_target_architecture ~= nil then
33
33
return explicit_target_architecture
34
34
end
35
- if os .ishost (" windows" ) then return " x86 " end
35
+ if os .ishost (" windows" ) then return " x64 " end
36
36
return is_64_bits_mono_runtime () and " x64" or " x86"
37
37
end
38
38
Original file line number Diff line number Diff line change 347
347
function get_cmake_generator ()
348
348
local vsver = get_vs_version ()
349
349
if vsver == " vs2017" then
350
- return " Visual Studio 15 2017"
350
+ return " Visual Studio 15 2017" .. ( target_architecture () == " x64 " and " Win64 " or " " )
351
351
elseif vsver == " vs2015" then
352
- return " Visual Studio 14 2015"
352
+ return " Visual Studio 14 2015" .. ( target_architecture () == " x64 " and " Win64 " or " " )
353
353
else
354
354
error (" Cannot map to CMake configuration due to unknown MSVC version" )
355
355
end
@@ -368,7 +368,7 @@ function build_llvm(llvm_build)
368
368
if os .ishost (" windows" ) and use_msbuild then
369
369
cmake (get_cmake_generator (), conf , llvm_build )
370
370
local llvm_sln = path .join (llvm_build , " LLVM.sln" )
371
- msbuild (llvm_sln , conf )
371
+ msbuild (' " ' .. llvm_sln .. ' " ' , conf )
372
372
else
373
373
local options = os .ishost (" macosx" ) and
374
374
" -DLLVM_ENABLE_LIBCXX=true" or " "
You can’t perform that action at this time.
0 commit comments