Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not set LIBRARY_PATH on macOS 13 #254

Merged
merged 1 commit into from
Nov 6, 2022
Merged

Do not set LIBRARY_PATH on macOS 13 #254

merged 1 commit into from
Nov 6, 2022

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented Nov 5, 2022

Setting LIBRARY_PATH on macos 13 causes issues when compiling rust
crates with rust dependencies compiling modern C++ in their build script.
This can be reproduced without Corrosion by running:

LIBRARY_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib \
cargo rustc --lib --package cxxbridge-crate --manifest-path \
/path/to/cxxbridge/rust/Cargo.toml  -- -Cdefault-linker-libraries=yes

Without LIBRARY_PATH the build completes without problems, but with the
environment variable set the build script errors, since the C++ code
contains e.g. C++11 extensions.

Since on macos-13 everything works fine when removing LIBARY_PATH remove
it for macos 13, but keep it for previous macos versions.

Setting LIBRARY_PATH on macos 13 causes issues when compiling rust
crates with rust dependencies compiling modern C++ in their build script.
This can be reproduced without Corrosion by running:
```
LIBRARY_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib \
cargo rustc --lib --package cxxbridge-crate --manifest-path \
/path/to/cxxbridge/rust/Cargo.toml  -- -Cdefault-linker-libraries=yes
```

Without LIBRARY_PATH the build completes without problems, but with the
environment variable set the build script errors, since the C++ code
contains e.g. C++11 extensions.

Since on macos-13 everything works fine when removing LIBARY_PATH remove
it for macos 13, but keep it for previous macos versions.
@jschwe jschwe merged commit b921fd0 into master Nov 6, 2022
@jschwe jschwe deleted the library_path branch December 13, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant