| author | |
| committer | |
| log | e64f0971fc788cefb348e9516cd3b284df7ea0df |
| tree | fcd343acc56d078d753c936f57a1bfe762734563 |
| parent | 1e301b03a9110b3cd8a29530ad9cbc85b403a902 |
6 files changed, 26 insertions(+), 2 deletions(-)
README.md+1| ... | @@ -59,6 +59,7 @@ clarity. | ... | @@ -59,6 +59,7 @@ clarity. |
| 59 | ## Building | 59 | ## Building |
| 60 | 60 | ||
| 61 | [](https://travis-ci.org/zig-lang/zig) | 61 | [](https://travis-ci.org/zig-lang/zig) |
| 62 | [](https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master) | ||
| 62 | 63 | ||
| 63 | ### Dependencies | 64 | ### Dependencies |
| 64 | 65 |
ci/appveyor/appveyor.yml created+5| ... | @@ -0,0 +1,5 @@ | ||
| 1 | image: Visual Studio 2015 | ||
| 2 | platform: | ||
| 3 | - x64 | ||
| 4 | build_script: | ||
| 5 | - '%APPVEYOR_BUILD_FOLDER%\ci\appveyor\build_script.bat' | ||
ci/appveyor/build_script.bat created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | @echo on | ||
| 2 | echo %APPVEYOR_BUILD_FOLDER% | ||
| 3 | cd %APPVEYOR_BUILD_FOLDER% | ||
| 4 | SET "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%" | ||
| 5 | SET "MSYSTEM=MINGW64" | ||
| 6 | |||
| 7 | bash -lc "pacman -Syu --needed --noconfirm" | ||
| 8 | bash -lc "pacman -Su --needed --noconfirm" | ||
| 9 | bash -lc "pacman -S --needed --noconfirm make mingw64/mingw-w64-x86_64-make mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-clang mingw64/mingw-w64-x86_64-llvm mingw64/mingw-w64-x86_64-lld mingw64/mingw-w64-x86_64-gcc" | ||
| 10 | |||
| 11 | bash -lc "cd ${APPVEYOR_BUILD_FOLDER} && mkdir build && cd build && cmake .. -G""MSYS Makefiles"" -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_LIB_DIR=$(dirname $(cc -print-file-name=crt1.o)) -DZIG_LIBC_INCLUDE_DIR=$(echo -n | cc -E -x c - -v 2>&1 | grep -B1 ""End of search list."" | head -n1 | cut -c 2- | sed ""s/ .*//"") -DZIG_LIBC_STATIC_LIB_DIR=$(dirname $(cc -print-file-name=crtbegin.o)) && make && make install" | ||
cmake/Findclang.cmake+3-1| ... | @@ -16,7 +16,9 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h | ... | @@ -16,7 +16,9 @@ find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h |
| 16 | find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_} | 16 | find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_} |
| 17 | PATHS | 17 | PATHS |
| 18 | /usr/lib/llvm-4.0/lib | 18 | /usr/lib/llvm-4.0/lib |
| 19 | /mingw64/lib) | 19 | /mingw64/lib |
| 20 | /c/msys64/mingw64/lib | ||
| 21 | c:\\msys64\\mingw64\\lib) | ||
| 20 | if(CLANG_${_prettylibname_}_LIB) | 22 | if(CLANG_${_prettylibname_}_LIB) |
| 21 | set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB}) | 23 | set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB}) |
| 22 | endif() | 24 | endif() |
cmake/Findlld.cmake+3-1| ... | @@ -20,7 +20,9 @@ else() | ... | @@ -20,7 +20,9 @@ else() |
| 20 | find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_} | 20 | find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_} |
| 21 | PATHS | 21 | PATHS |
| 22 | /usr/lib/llvm-4.0/lib | 22 | /usr/lib/llvm-4.0/lib |
| 23 | /mingw64/lib) | 23 | /mingw64/lib |
| 24 | /c/msys64/mingw64/lib | ||
| 25 | c:/msys64/mingw64/lib) | ||
| 24 | if(LLD_${_prettylibname_}_LIB) | 26 | if(LLD_${_prettylibname_}_LIB) |
| 25 | set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB}) | 27 | set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB}) |
| 26 | endif() | 28 | endif() |
cmake/Findllvm.cmake+3| ... | @@ -10,6 +10,9 @@ | ... | @@ -10,6 +10,9 @@ |
| 10 | find_program(LLVM_CONFIG_EXE | 10 | find_program(LLVM_CONFIG_EXE |
| 11 | NAMES llvm-config llvm-config-4.0 | 11 | NAMES llvm-config llvm-config-4.0 |
| 12 | PATHS | 12 | PATHS |
| 13 | "/mingw64/bin" | ||
| 14 | "/c/msys64/mingw64/bin" | ||
| 15 | "c:/msys64/mingw64/bin" | ||
| 13 | "C:/Libraries/llvm-4.0.0/bin") | 16 | "C:/Libraries/llvm-4.0.0/bin") |
| 14 | 17 | ||
| 15 | execute_process( | 18 | execute_process( |