about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-22 09:19:47 +0000
committerbors <bors@rust-lang.org>2015-09-22 09:19:47 +0000
commitf17cc4cf045dcb8e8fb3e2060eb0ec0681e6c08f (patch)
tree54f9c97aa72cfe99c3f55cd5eec9141ea4e33073 /src/rustllvm/ExecutionEngineWrapper.cpp
parent0b089cd2d537e2fbf0ccbd7590af138086558eb5 (diff)
parent920f32becd5d54864a966900963a376d74d09922 (diff)
downloadrust-f17cc4cf045dcb8e8fb3e2060eb0ec0681e6c08f.tar.gz
rust-f17cc4cf045dcb8e8fb3e2060eb0ec0681e6c08f.zip
Auto merge of #28578 - gandro:nodefaultlibs, r=alexcrichton
This patch basically adds a target option for omitting the `-nodefaultlibs` flag when invoking the linker. I am not sure if this is the correct or only way to approach this problem, so any feedback is welcome.

Motivation: I'm currently working on a Rust target specification for the [rumprun](/rumpkernel/rumprun) unikernel. rumprun is based on rump kernels and uses NetBSDs libc and drivers to provide a POSIXy environment. It provides its own linker wrapper that generates binaries which can be "baked" into a unikernel after configuration. Using `-nodefaultlibs` on the rumprun linker will prevent it from selecting the search paths for the rumprun libraries. My current target implementation for rumprun is here: gandro/rust@295744b2ee2378f41a20d4b498b8f1991a75e93c

Currently, only a target that `is_like_windows` will omit the `-nodefaultlibs` flag, but since rumprun is not like Windows otherwise, I think a separate flag makes more sense. This might be a breaking change for target specifications that have the `is_like_windows` option set to true. Such targets need to set `no_default_libraries` to false in order to restore the old behavior.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions