Skip to content

Commit

Permalink
+highway (#783)
Browse files Browse the repository at this point in the history
* +highway
* fix test on x86
* try to fix x86 tests
# Closes #99

---------

Co-authored-by: Max Howell <[email protected]>
  • Loading branch information
mfts and mxcl authored Mar 19, 2023
1 parent da9ddfc commit 5b76238
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions projects/google.com/highway/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
distributable:
url: https://github.com/google/highway/archive/refs/tags/{{version}}.tar.gz
strip-components: 1

versions:
github: google/highway/tags

build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: '*'
script: |
cmake -S . -B builddir $ARGS
cmake --build builddir
cmake --install builddir
mkdir -p {{prefix}}/share/hwy/examples
cp -R hwy/examples {{prefix}}/share/hwy/
env:
ARGS:
- -DBUILD_SHARED_LIBS=ON
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DHWY_ENABLE_TESTS=OFF
- -DHWY_ENABLE_EXAMPLES=OFF
- -DCMAKE_BUILD_TYPE=Release

test:
dependencies:
tea.xyz/gx/cc: c99
curl.se: '*'
script: |
mkdir -p hwy/examples
curl -LO --output-dir hwy/examples https://github.com/google/highway/raw/master/hwy/examples/benchmark.cc
c++ -std=c++11 -lhwy -I. hwy/examples/benchmark.cc
./a.out
# ^^ the -I. is because bizarely benchmark.cc configures other headers to
# include itself but only on intel…

0 comments on commit 5b76238

Please sign in to comment.