Skip to content

Commit 0376470

Browse files
committed
Disable extern_weak test on macOS
1 parent b004312 commit 0376470

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

build_system/tests.rs

-8
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,6 @@ impl<'a> TestRunner<'a> {
330330
target_compiler.rustflags.extend(rustflags_from_env("RUSTFLAGS"));
331331
target_compiler.rustdocflags.extend(rustflags_from_env("RUSTDOCFLAGS"));
332332

333-
// FIXME fix `#[linkage = "extern_weak"]` without this
334-
if target_compiler.triple.contains("darwin") {
335-
target_compiler.rustflags.extend([
336-
"-Clink-arg=-undefined".to_owned(),
337-
"-Clink-arg=dynamic_lookup".to_owned(),
338-
]);
339-
}
340-
341333
let jit_supported = use_unstable_features
342334
&& is_native
343335
&& target_compiler.triple.contains("x86_64")

example/mini_core_hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ fn main() {
274274

275275
assert_eq!(((|()| 42u8) as fn(()) -> u8)(()), 42);
276276

277-
#[cfg(not(any(jit, windows)))]
277+
#[cfg(not(any(jit, target_vendor = "apple", windows)))]
278278
{
279279
extern "C" {
280280
#[linkage = "extern_weak"]

0 commit comments

Comments
 (0)