]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/external-no-mangle-statics.rs
Rollup merge of #103168 - Amanieu:stable_asm_sym, r=davidtwco
[rust.git] / src / test / codegen / external-no-mangle-statics.rs
index 6274434cd8fcc3754c844fd5a38c0b233f061bf0..c6ecb7aa96abcaf2defd9c6724c04385fc768c1a 100644 (file)
@@ -1,12 +1,11 @@
 // revisions: lib staticlib
 // ignore-emscripten default visibility is hidden
 // compile-flags: -O
+// [lib] compile-flags: --crate-type lib
+// [staticlib] compile-flags: --crate-type staticlib
 // `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their
 // definitions
 
-#![cfg_attr(lib, crate_type = "lib")]
-#![cfg_attr(staticlib, crate_type = "staticlib")]
-
 // CHECK: @A = local_unnamed_addr constant
 #[no_mangle]
 static A: u8 = 0;