This repository was archived by the owner on Dec 20, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +8
-19
lines changed Expand file tree Collapse file tree 5 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ commonSteps: &commonSteps
3636 name : Checkout git submodules
3737 command : git submodule update --init --recursive
3838 - run :
39- name : Build LLVM
39+ name : Build LLVM incl. LLD and compiler-rt
4040 command : |
4141 cd ..
4242 echo "$PATH"
@@ -49,21 +49,7 @@ commonSteps: &commonSteps
4949 else
5050 extraCMakeFlags="-DLLVM_ENABLE_LIBCXX=True -DHAVE_FUTIMENS=0"
5151 fi
52- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(dirname $PWD)/llvm-x64 -DLLVM_TARGETS_TO_BUILD="X86;AArch64;ARM;PowerPC;NVPTX" -DLLVM_ENABLE_ASSERTIONS=$LLVM_ENABLE_ASSERTIONS $extraCMakeFlags $CIRCLE_WORKING_DIRECTORY
53- ninja -j3 install
54- cd ..
55- - run :
56- name : Build compiler-rt
57- command : |
58- cd ..
59- LLVM_VERSION=$(llvm-x64/bin/llvm-config --version)
60- LLVM_VERSION=${LLVM_VERSION:0:5}
61- echo "$LLVM_VERSION"
62- curl -OL http://releases.llvm.org/$LLVM_VERSION/compiler-rt-$LLVM_VERSION.src.tar.xz
63- tar -xf compiler-rt-$LLVM_VERSION.src.tar.xz --no-same-owner
64- mkdir ninja-compiler-rt
65- cd ninja-compiler-rt
66- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(dirname $PWD)/llvm-x64/lib/clang/$LLVM_VERSION -DLLVM_CONFIG_PATH=$(dirname $PWD)/llvm-x64/bin/llvm-config ../compiler-rt-$LLVM_VERSION.src
52+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(dirname $PWD)/llvm-x64 -DLLVM_TARGETS_TO_BUILD="X86;AArch64;ARM;PowerPC;NVPTX" -DLLVM_ENABLE_ASSERTIONS=$LLVM_ENABLE_ASSERTIONS -DCOMPILER_RT_INCLUDE_TESTS=OFF $extraCMakeFlags $CIRCLE_WORKING_DIRECTORY
6753 ninja -j3 install
6854 cd ..
6955 - run :
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ autoconf/autom4te.cache
4646# Directories to ignore (do not add trailing '/'s, they skip symlinks).
4747# ==============================================================================#
4848# External projects that are tracked independently.
49- projects /*
49+ # projects/*
5050! projects /* . *
5151! projects /Makefile
5252runtimes /*
Original file line number Diff line number Diff line change 11[submodule "lld "]
22 path = tools/lld
33 url = https://github.com/ldc-developers/lld.git
4+ [submodule "projects/compiler-rt "]
5+ path = projects/compiler-rt
6+ url = https://github.com/llvm-mirror/compiler-rt.git
Original file line number Diff line number Diff line change @@ -61,9 +61,8 @@ build_script:
6161 - cd c:\projects
6262 - md ninja-llvm
6363 - cd ninja-llvm
64- - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=c:\projects\LLVM-%APPVEYOR_JOB_ARCH% -DLLVM_USE_CRT_RELEASE=MT -DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM;PowerPC;NVPTX -DLLVM_ENABLE_ASSERTIONS=%LLVM_ENABLE_ASSERTIONS% ..\llvm
64+ - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=c:\projects\LLVM-%APPVEYOR_JOB_ARCH% -DLLVM_USE_CRT_RELEASE=MT -DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM;PowerPC;NVPTX -DLLVM_ENABLE_ASSERTIONS=%LLVM_ENABLE_ASSERTIONS% -DCOMPILER_RT_INCLUDE_TESTS=OFF ..\llvm
6565 - ninja -j3 install
66- # TODO: Include compiler-rt as soon as AppVeyor doesn't scratch the timeout limit anymore.
6766
6867after_build :
6968 # pack installation dir & publish as artifact
You can’t perform that action at this time.
0 commit comments