Skip to content

Commit 5d7a51a

Browse files
author
gaoqiangz
committed
修复rustc 1.54引入的cargo:rustc-link-arg-*编译指令检查
rust-lang/cargo#9523
1 parent de761b6 commit 5d7a51a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ fn main() {
1616

1717
cfg.compile("pbx");
1818

19+
#[cfg(target = "cdylib")]
1920
build_def();
2021
}
2122

2223
//生成导出符号定义文件
2324
//解决rust msvc 32bit dll编译符号被截断的问题
25+
#[cfg(target = "cdylib")]
2426
fn build_def() {
2527
use std::{fs::OpenOptions, io::Write, path::PathBuf};
2628

0 commit comments

Comments
 (0)