mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fixes deno on darwin/aarch64 (#96)
This commit is contained in:
parent
ea699e9b52
commit
c9e9b4a045
|
@ -19,6 +19,20 @@ build:
|
|||
python.org: 3
|
||||
working-directory: build
|
||||
script: |-
|
||||
if test {{ hw.target }} = x86_64-unknown-linux-gnu; then
|
||||
# required to build something that works on linux/x86-64
|
||||
ARGS="$ARGS
|
||||
-DCLANG_DEFAULT_CXX_STDLIB=libstdc++
|
||||
-DCLANG_DEFAULT_RTLIB=libgcc
|
||||
-DCOMPILER_RT_INCLUDE_TESTS=OFF
|
||||
-DCOMPILER_RT_USE_LIBCXX=OFF"
|
||||
fi
|
||||
|
||||
# without this macOS programs typically won’t link to core symbols
|
||||
if test {{ hw.platform }} = darwin; then
|
||||
ARGS="$ARGS -DDEFAULT_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
|
||||
fi
|
||||
|
||||
cmake \
|
||||
../llvm \
|
||||
-G Ninja \
|
||||
|
@ -55,14 +69,19 @@ build:
|
|||
- -DCMAKE_INSTALL_PREFIX="{{ prefix }}"
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DLLVM_ENABLE_PROJECTS='lld;clang'
|
||||
|
||||
# required to build something that works on linux/x86-64
|
||||
- -DCLANG_DEFAULT_LINKER=ld
|
||||
- -DCLANG_DEFAULT_CXX_STDLIB=libstdc++
|
||||
- -DCLANG_DEFAULT_RTLIB=libgcc
|
||||
- -DCOMPILER_RT_INCLUDE_TESTS=OFF
|
||||
- -DCOMPILER_RT_USE_LIBCXX=OFF
|
||||
|
||||
- -DLLVM_INCLUDE_DOCS=OFF
|
||||
- -DLLVM_INCLUDE_TESTS=OFF
|
||||
# without this deno won’t build on darwin/aarch64
|
||||
# with it nothing seems to break
|
||||
- -DCLANG_DEFAULT_LINKER=lld
|
||||
test:
|
||||
script:
|
||||
clang --version
|
||||
fixture: |
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
printf("Hello World!\n");
|
||||
return 0;
|
||||
}
|
||||
script: |
|
||||
mv $FIXTURE $FIXTURE.c
|
||||
clang $FIXTURE.c
|
||||
./a.out
|
||||
|
|
Loading…
Reference in a new issue