Skip to content

Commit 0929487

Browse files
committed
rust: target: factor out and disable emit-debug-gdb-scripts
This option was added in `rustc` in order to disable GDB scripts for some no-`std` targets, see rust-lang/rust#44993. Therefore, even though the default in the compiler for targets is `true`, we leave it as `false`. If, in the future, it gets enabled, then we should take into account the `CONFIG_GDB_SCRIPTS` option. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent bcb5e05 commit 0929487

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/generate_rust_target.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ fn main() {
211211
"e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128",
212212
);
213213
ts.push("disable-redzone", true);
214-
ts.push("emit-debug-gdb-scripts", false);
215214
ts.push("features", "+strict-align,+neon,+fp-armv8");
216215
ts.push("frame-pointer", "always");
217216
ts.push("llvm-target", "aarch64-unknown-none");
@@ -254,7 +253,6 @@ fn main() {
254253
}
255254
ts.push("code-model", "medium");
256255
ts.push("disable-redzone", true);
257-
ts.push("emit-debug-gdb-scripts", false);
258256
let mut features = "+m,+a".to_string();
259257
if cfg.has("RISCV_ISA_C") {
260258
features += ",+c";
@@ -274,7 +272,6 @@ fn main() {
274272
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
275273
);
276274
ts.push("disable-redzone", true);
277-
ts.push("emit-debug-gdb-scripts", false);
278275
ts.push(
279276
"features",
280277
"-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float",
@@ -292,6 +289,7 @@ fn main() {
292289
panic!("Unsupported architecture");
293290
}
294291

292+
ts.push("emit-debug-gdb-scripts", false);
295293
ts.push("env", "gnu");
296294
ts.push("function-sections", false);
297295
ts.push("linker-is-gnu", true);

0 commit comments

Comments
 (0)