瀏覽代碼

修正rustflags导致编译后无法运行的问题 (#38)

LoGin 1 年之前
父節點
當前提交
3d99c3a9d9
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      .vscode/settings.json
  2. 1 1
      Makefile

+ 0 - 1
.vscode/settings.json

@@ -1,7 +1,6 @@
 {
     "rust-analyzer.linkedProjects": [
         "./Cargo.toml",
-        "./systemctl/Cargo.toml"
     ],
     "rust-analyzer.checkOnSave": true
 }

+ 1 - 1
Makefile

@@ -1,7 +1,7 @@
 # The toolchain we use.
 # You can get it by running DragonOS' `tools/bootstrap.sh`
 TOOLCHAIN="+nightly-2023-08-15-x86_64-unknown-linux-gnu"
-RUSTFLAGS+="-C target-feature=+crt-static -C link-arg=-no-pie"
+RUSTFLAGS+=""
 
 ifdef DADK_CURRENT_BUILD_DIR
 # 如果是在dadk中编译,那么安装到dadk的安装目录中