File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ fn copy_self_contained_objects(
261
261
// to using gcc from a glibc-targeting toolchain for linking.
262
262
// To do that we have to distribute musl startup objects as a part of Rust toolchain
263
263
// and link with them manually in the self-contained mode.
264
- if target. contains ( "musl" ) {
264
+ if target. contains ( "musl" ) && !target . contains ( "unikraft" ) {
265
265
let srcdir = builder. musl_libdir ( target) . unwrap_or_else ( || {
266
266
panic ! ( "Target {:?} does not have a \" musl-libdir\" key" , target. triple)
267
267
} ) ;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ than building it.
206
206
}
207
207
208
208
// Make sure musl-root is valid
209
- if target. contains ( "musl" ) {
209
+ if target. contains ( "musl" ) && !target . contains ( "unikraft" ) {
210
210
// If this is a native target (host is also musl) and no musl-root is given,
211
211
// fall back to the system toolchain in /usr before giving up
212
212
if build. musl_root ( * target) . is_none ( ) && build. config . build == * target {
You can’t perform that action at this time.
0 commit comments