Skip to content

Commit 86ea5cd

Browse files
committed
pixi messed up my linker, but this should help prevent such problems again
1 parent 1ee2402 commit 86ea5cd

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

libensemble/tests/scaling_tests/forces/forces_app/build_forces.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
# Building flat MPI
55
# -------------------------------------------------
66

7-
# GCC
8-
mpicc -O3 -o forces.x forces.c -lm
7+
# macOS (Apple Silicon with pixi) / GCC
8+
if [[ "$OSTYPE" == "darwin"* ]]; then
9+
mpicc -cc=clang -O3 -o forces.x forces.c -lm
10+
else
11+
mpicc -O3 -o forces.x forces.c -lm
12+
fi
913

1014
# Intel
1115
# mpiicc -O3 -o forces.x forces.c

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)