mirror of
https://github.com/ivabus/pantry
synced 2024-11-13 03:55: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
|
python.org: 3
|
||||||
working-directory: build
|
working-directory: build
|
||||||
script: |-
|
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 \
|
cmake \
|
||||||
../llvm \
|
../llvm \
|
||||||
-G Ninja \
|
-G Ninja \
|
||||||
|
@ -55,14 +69,19 @@ build:
|
||||||
- -DCMAKE_INSTALL_PREFIX="{{ prefix }}"
|
- -DCMAKE_INSTALL_PREFIX="{{ prefix }}"
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DLLVM_ENABLE_PROJECTS='lld;clang'
|
- -DLLVM_ENABLE_PROJECTS='lld;clang'
|
||||||
|
- -DLLVM_INCLUDE_DOCS=OFF
|
||||||
# required to build something that works on linux/x86-64
|
- -DLLVM_INCLUDE_TESTS=OFF
|
||||||
- -DCLANG_DEFAULT_LINKER=ld
|
# without this deno won’t build on darwin/aarch64
|
||||||
- -DCLANG_DEFAULT_CXX_STDLIB=libstdc++
|
# with it nothing seems to break
|
||||||
- -DCLANG_DEFAULT_RTLIB=libgcc
|
- -DCLANG_DEFAULT_LINKER=lld
|
||||||
- -DCOMPILER_RT_INCLUDE_TESTS=OFF
|
|
||||||
- -DCOMPILER_RT_USE_LIBCXX=OFF
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
fixture: |
|
||||||
clang --version
|
#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