解决在vscode中凭空出现的报错

This commit is contained in:
pointer-to-bios 2024-04-17 01:01:20 +08:00
parent 8d7e2b1a88
commit cfc961e5c3
5 changed files with 4 additions and 28 deletions

2
.cargo/config Normal file
View File

@ -0,0 +1,2 @@
[build]
target = ["x86_64-unknown-none"]

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.vscode
/test/metaverse.img /test/metaverse.img
*.o *.o
*.tfo *.tfo

View File

@ -1,16 +0,0 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/include"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.makefile-tools"
}
],
"version": 4
}

View File

@ -1,9 +0,0 @@
{
"C_Cpp.errorSquiggles": "disabled",
"files.associations": {
"*.s": "nasm",
"LICENCE": "plaintext",
"*.h": "c"
},
"rust-analyzer.imports.preferNoStd" : true,
}

View File

@ -5,9 +5,7 @@ edition = "2021"
[lib] [lib]
crate-type = ["staticlib"] crate-type = ["staticlib"]
test = false
# 此Cargo.toml仅用于rust-analyzer识别rust部分的代码 # 此Cargo.toml仅用于rust-analyzer识别rust部分的代码
# 不应使用cargo编译 # 不应使用cargo编译
[target.'cfg(target_arch = "x86_64")']
target = "x86_64-unknown-none"