forked from LowLevelDevs/FoundryOS
Enable support for $USE_GDB when running in debug mode.
This commit is contained in:
+9
-8
@@ -9,15 +9,16 @@ build-std-features = ["compiler-builtins-mem"]
|
||||
[env]
|
||||
RUST_TARGET_PATH = { value = "kernel", relative = true }
|
||||
|
||||
[target.x86_64-kernel]
|
||||
runner = "scripts/run.sh"
|
||||
# Run in debug mode.
|
||||
[target.'cfg(all(target_arch = "x86_64", target_os = "none", debug_assertions))']
|
||||
runner = "scripts/run_debug.sh"
|
||||
|
||||
[registry]
|
||||
default = "gitea"
|
||||
# Otherwise we run in release mode.
|
||||
[target.'cfg(all(target_arch = "x86_64", target_os = "none", not(debug_assertions)))']
|
||||
runner = "scripts/run_release.sh"
|
||||
|
||||
# [registry]
|
||||
# default = "gitea"
|
||||
|
||||
[registries.gitea]
|
||||
index = "sparse+https://git.zxq5.dev/api/packages/OsDev/cargo/" # Sparse index
|
||||
# index = "https://gitea.example.com/{owner}/_cargo-index.git" # Git
|
||||
|
||||
# [net]
|
||||
# git-fetch-with-cli = true
|
||||
|
||||
Reference in New Issue
Block a user