mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
parent
a3a0ce82c8
commit
2f51da624b
1 changed files with 22 additions and 5 deletions
|
@ -37,6 +37,7 @@ build:
|
|||
- -DCMAKE_INSTALL_PREFIX="{{ prefix }}"
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DLLVM_ENABLE_PROJECTS='lld;clang'
|
||||
- -DLLVM_ENABLE_RUNTIMES='compiler-rt'
|
||||
- -DLLVM_INCLUDE_DOCS=OFF
|
||||
- -DLLVM_INCLUDE_TESTS=OFF
|
||||
linux:
|
||||
|
@ -46,6 +47,9 @@ build:
|
|||
#NOTE only wanted on linux because on macOS we actually *need* the Apple
|
||||
# provided `ld` or things *also* break 😆
|
||||
- -DCLANG_DEFAULT_LINKER=lld
|
||||
# Needed with the CMAKE_C_COMPILER_TARGET to compile compiler-rt on linux
|
||||
# https://reviews.llvm.org/D147598
|
||||
- -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
|
||||
darwin:
|
||||
ARGS:
|
||||
#FIXME shouldn’t *have to* require the command line tools package
|
||||
|
@ -58,7 +62,16 @@ build:
|
|||
- -DCLANG_DEFAULT_CXX_STDLIB=libstdc++
|
||||
- -DCLANG_DEFAULT_RTLIB=libgcc
|
||||
- -DCOMPILER_RT_INCLUDE_TESTS=OFF
|
||||
- -DCOMPILER_RT_USE_LIBCXX=OFF"
|
||||
- -DCOMPILER_RT_USE_LIBCXX=OFF
|
||||
# otherwise compiler-rt fails to build
|
||||
# https://reviews.llvm.org/D147598
|
||||
- -DCMAKE_C_COMPILER_TARGET="x86_64-unknown-linux-gnu"
|
||||
linux/aarch64:
|
||||
ARGS:
|
||||
# otherwise compiler-rt fails to build
|
||||
# https://reviews.llvm.org/D147598
|
||||
- -DCMAKE_C_COMPILER_TARGET="aarch64-unknown-linux-gnu"
|
||||
|
||||
test:
|
||||
fixture: |
|
||||
#include <stdio.h>
|
||||
|
@ -66,7 +79,11 @@ test:
|
|||
printf("Hello World!\n");
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE $FIXTURE.c
|
||||
clang $FIXTURE.c
|
||||
./a.out
|
||||
script:
|
||||
- mv $FIXTURE $FIXTURE.c
|
||||
- clang $ARGS $FIXTURE.c
|
||||
- ./a.out
|
||||
env:
|
||||
ARGS:
|
||||
- -fsanitize=address,undefined
|
||||
- -Wl,-rpath,$TEA_PREFIX
|
||||
|
|
Loading…
Reference in a new issue