Skip to content

Commit 71ef3af

Browse files
committed
ENH: Try to use the right flags on macos
1 parent 6413775 commit 71ef3af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

recipes/eon/build.nu

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ print $"INFO: Running meson setup with ($configure_args | str join ' ')"
2424
# External commands will get LIBS, CPPFLAGS, CXXFLAGS as space-separated strings
2525
# due to the to_string closure in ENV_CONVERSIONS.
2626
meson setup bbdir ...$configure_args
27-
meson install -C bbdir
27+
if ($env.target_platform | str starts-with "osx") {
28+
(CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
29+
meson install -C bbdir)
30+
} else {
31+
meson install -C bbdir
32+
}
33+
2834

2935
# --- Post-Install Linking Fix for macOS ---
3036
# Delete all existing rpaths, and then add back a single correct one.

0 commit comments

Comments
 (0)