This repository was archived by the owner on Dec 20, 2019. It is now read-only.
File tree 5 files changed +8
-19
lines changed
5 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ commonSteps: &commonSteps
36
36
name : Checkout git submodules
37
37
command : git submodule update --init --recursive
38
38
- run :
39
- name : Build LLVM
39
+ name : Build LLVM incl. LLD and compiler-rt
40
40
command : |
41
41
cd ..
42
42
echo "$PATH"
@@ -49,21 +49,7 @@ commonSteps: &commonSteps
49
49
else
50
50
extraCMakeFlags="-DLLVM_ENABLE_LIBCXX=True -DHAVE_FUTIMENS=0"
51
51
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
67
53
ninja -j3 install
68
54
cd ..
69
55
- run :
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ autoconf/autom4te.cache
46
46
# Directories to ignore (do not add trailing '/'s, they skip symlinks).
47
47
# ==============================================================================#
48
48
# External projects that are tracked independently.
49
- projects /*
49
+ # projects/*
50
50
! projects /* . *
51
51
! projects /Makefile
52
52
runtimes /*
Original file line number Diff line number Diff line change 1
1
[submodule "lld "]
2
2
path = tools/lld
3
3
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:
61
61
- cd c:\projects
62
62
- md ninja-llvm
63
63
- 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
65
65
- ninja -j3 install
66
- # TODO: Include compiler-rt as soon as AppVeyor doesn't scratch the timeout limit anymore.
67
66
68
67
after_build :
69
68
# pack installation dir & publish as artifact
You can’t perform that action at this time.
0 commit comments