Skip to content

Commit

Permalink
修复rustc 1.54引入的cargo:rustc-link-arg-*编译指令检查
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoqiangz committed Jun 23, 2021
1 parent de761b6 commit 5d7a51a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ fn main() {

cfg.compile("pbx");

#[cfg(target = "cdylib")]
build_def();
}

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

Expand Down

1 comment on commit 5d7a51a

@figo361
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nb

Please sign in to comment.