2023-03-19 15:30:10 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/google/highway/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: google/highway/tags
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: '*'
|
2024-02-23 09:04:31 +03:00
|
|
|
script:
|
|
|
|
- cmake -S . -B builddir $ARGS
|
|
|
|
- cmake --build builddir
|
|
|
|
- cmake --install builddir
|
2023-03-19 15:30:10 +03:00
|
|
|
|
2024-02-23 09:04:31 +03:00
|
|
|
- mkdir -p {{prefix}}/share/hwy/examples
|
|
|
|
- cp -R hwy/examples {{prefix}}/share/hwy/
|
2023-03-19 15:30:10 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -DBUILD_SHARED_LIBS=ON
|
|
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
|
|
- -DHWY_ENABLE_TESTS=OFF
|
|
|
|
- -DHWY_ENABLE_EXAMPLES=OFF
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
2024-02-23 09:04:31 +03:00
|
|
|
linux/x86-64:
|
|
|
|
ARGS:
|
|
|
|
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
|
|
|
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined
|
2023-03-19 15:30:10 +03:00
|
|
|
|
|
|
|
test:
|
2024-02-23 09:04:31 +03:00
|
|
|
env:
|
|
|
|
linux/x86-64:
|
|
|
|
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
|
|
|
|
CXXFLAGS: $CXXFLAGS -Wl,--allow-shlib-undefined
|
|
|
|
script:
|
|
|
|
- mkdir -p hwy
|
|
|
|
- cp -R {{prefix}}/share/hwy/examples hwy/
|
|
|
|
- c++ -std=c++11 -lhwy -I. hwy/examples/profiler_example.cc $CXXFLAGS
|
|
|
|
- ./a.out
|
|
|
|
# ^^ the -I. is because bizarely profiler_example.cc configures other headers to
|
|
|
|
# include itself but only on intel…
|