mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
parent
78026788a7
commit
22cbaaef6b
1 changed files with 21 additions and 17 deletions
|
@ -7,16 +7,14 @@ versions:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
linux/x86-64:
|
|
||||||
llvm.org: <16 # ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
|
|
||||||
cmake.org: '*'
|
cmake.org: '*'
|
||||||
script: |
|
script:
|
||||||
cmake -S . -B builddir $ARGS
|
- cmake -S . -B builddir $ARGS
|
||||||
cmake --build builddir
|
- cmake --build builddir
|
||||||
cmake --install builddir
|
- cmake --install builddir
|
||||||
|
|
||||||
mkdir -p {{prefix}}/share/hwy/examples
|
- mkdir -p {{prefix}}/share/hwy/examples
|
||||||
cp -R hwy/examples {{prefix}}/share/hwy/
|
- cp -R hwy/examples {{prefix}}/share/hwy/
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DBUILD_SHARED_LIBS=ON
|
- -DBUILD_SHARED_LIBS=ON
|
||||||
|
@ -24,14 +22,20 @@ build:
|
||||||
- -DHWY_ENABLE_TESTS=OFF
|
- -DHWY_ENABLE_TESTS=OFF
|
||||||
- -DHWY_ENABLE_EXAMPLES=OFF
|
- -DHWY_ENABLE_EXAMPLES=OFF
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
linux/x86-64:
|
||||||
|
ARGS:
|
||||||
|
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
|
||||||
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined
|
||||||
|
|
||||||
test:
|
test:
|
||||||
dependencies:
|
env:
|
||||||
curl.se: '*'
|
linux/x86-64:
|
||||||
script: |
|
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
|
||||||
mkdir -p hwy/examples
|
CXXFLAGS: $CXXFLAGS -Wl,--allow-shlib-undefined
|
||||||
curl -LO --output-dir hwy/examples https://github.com/google/highway/raw/master/hwy/examples/benchmark.cc
|
script:
|
||||||
c++ -std=c++11 -lhwy -I. hwy/examples/benchmark.cc
|
- mkdir -p hwy
|
||||||
./a.out
|
- cp -R {{prefix}}/share/hwy/examples hwy/
|
||||||
# ^^ the -I. is because bizarely benchmark.cc configures other headers to
|
- c++ -std=c++11 -lhwy -I. hwy/examples/profiler_example.cc $CXXFLAGS
|
||||||
# include itself but only on intel…
|
- ./a.out
|
||||||
|
# ^^ the -I. is because bizarely profiler_example.cc configures other headers to
|
||||||
|
# include itself but only on intel…
|
||||||
|
|
Loading…
Reference in a new issue