fix(abseil)

closes #4949
This commit is contained in:
Jacob Heider 2024-01-22 16:46:34 -05:00 committed by Jacob Heider
parent 8af9366da6
commit 1b8dbc9123

View file

@ -26,18 +26,15 @@ build:
-DBUILD_TESTING=OFF -DBUILD_TESTING=OFF
- cmake --build build - cmake --build build
- cmake --install build - cmake --install build
# Remove bad flags in .pc files. # Remove bad flags in .pc files.
# https://github.com/abseil/abseil-cpp/issues/1408 # https://github.com/abseil/abseil-cpp/issues/1408
- run: | - run: sed -i 's/-Xarch_x86_64 -Xarch_x86_64 -Xarch_arm64 //g' *.pc
sed -i '' 's/-Xarch_x86_64 -Xarch_x86_64 -Xarch_arm64 //g' {{ prefix }}/lib/pkgconfig/absl_random_internal_randen_hwaes{_impl,}.pc working-directory: ${{ prefix }}/lib/pkgconfig
if: darwin if: darwin
- working-directory: '{{prefix}}/lib/cmake/absl' - run: sed -i -e "s:{{ pkgx.prefix }}:\$\{CMAKE_CURRENT_LIST_DIR\}/../../../../..:g" abslTargets{,-release}.cmake
run: | working-directory: '{{prefix}}/lib/cmake/absl'
sed -i.bak \
-e "s:{{ pkgx.prefix }}:\$\{CMAKE_CURRENT_LIST_DIR\}/../../../../..:g" \
abslTargets{,-release}.cmake
rm abslTargets{,-release}.cmake.bak
test: test:
script: | script: |