Skip to content

Commit

Permalink
Merge pull request #46 from MementoRC/fix/illegal-instruction-linux-64
Browse files Browse the repository at this point in the history
FIX: linux-64 illegal instruction: MCPU
  • Loading branch information
MementoRC authored Oct 25, 2024
2 parents c0bdc3f + 06ab004 commit 74e2cff
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 27 additions & 16 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 28 additions & 3 deletions azure-pipelines.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions recipe/build_scripts/native-cmake-linux-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ EXTRA_CMAKE_ARGS+=( \
"-DZIG_SHARED_LLVM=ON" \
"-DZIG_USE_LLVM_CONFIG=ON" \
"-DZIG_TARGET_TRIPLE=${SYSROOT_ARCH}-linux-gnu" \
"-DZIG_TARGET_MCPU=baseline" \
)

# Zig searches for libm.so/libc.so in incorrect paths (libm.so with hard-coded /usr/lib64/libmvec_nonshared.a)
Expand Down
1 change: 1 addition & 0 deletions recipe/build_scripts/native-cmake-osx-64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ EXTRA_CMAKE_ARGS+=( \
"-DZIG_SHARED_LLVM=ON" \
"-DZIG_USE_LLVM_CONFIG=ON" \
"-DZIG_TARGET_TRIPLE=${SYSROOT_ARCH}-macos-none" \
"-DZIG_TARGET_MCPU=baseline" \
)

# When using installed c++ libs, zig needs libzigcpp.a
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source:
# sha256: d45312e61ebcc48032b77bc4cf7fd6915c11fa16e4aad116b66c9468211230ea # [linux]

build:
number: 3
number: 4
skip: true # [not linux and not osx]
script_env:
- BUILD_WITH_CMAKE=1 # [(linux or osx) and x86_64]
Expand Down

0 comments on commit 74e2cff

Please sign in to comment.