Mercurial > vanilla
comparison lang/rust/patch-clang.patch @ 1176:e45b5d1810ab
lang/rust: initial import, closes #1097
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 23 Oct 2019 07:10:36 +0200 |
parents | |
children | 6af48cb79e02 |
comparison
equal
deleted
inserted
replaced
1175:944780161c16 | 1176:e45b5d1810ab |
---|---|
1 --- src/librustc_target/spec/linux_musl_base.rs.orig 2019-10-15 14:51:21.989949084 +0200 | |
2 +++ src/librustc_target/spec/linux_musl_base.rs 2019-10-15 14:51:42.253949707 +0200 | |
3 @@ -24,6 +24,7 @@ | |
4 base.pre_link_objects_exe_crt.push("crt1.o".to_string()); | |
5 base.pre_link_objects_exe_crt.push("crti.o".to_string()); | |
6 base.post_link_objects_crt.push("crtn.o".to_string()); | |
7 + base.post_link_objects_crt.push("-lunwind".to_string()); | |
8 | |
9 // These targets statically link libc by default | |
10 base.crt_static_default = true; | |
11 --- src/libunwind/lib.rs.orig 2019-10-15 14:54:58.457955734 +0200 | |
12 +++ src/libunwind/lib.rs 2019-10-15 14:55:28.705956663 +0200 | |
13 @@ -23,6 +23,5 @@ | |
14 } | |
15 | |
16 #[cfg(target_env = "musl")] | |
17 -#[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))] | |
18 -#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))] | |
19 +#[link(name = "unwind")] | |
20 extern {} |