Skip to content

Commit 8dff45e

Browse files
committed
Update target specs (remove os=unknown, add crt-static-respected).
1 parent b737a46 commit 8dff45e

16 files changed

+16
-16
lines changed

crates/rustc_codegen_spirv/src/target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ impl SpirvTarget {
8080
o.simd_types_indirect = false;
8181
o.allows_weak_linkage = false;
8282
o.crt_static_allows_dylibs = true;
83+
o.crt_static_respected = true;
8384
o.dll_prefix = "".into();
8485
o.dll_suffix = ".spv.json".into();
8586
o.dynamic_linking = true;
8687
o.emit_debug_gdb_scripts = false;
8788
o.linker_flavor = LinkerFlavor::Unix(Cc::No);
8889
o.panic_strategy = PanicStrategy::Abort;
89-
o.os = "unknown".into();
9090
o.env = self.env.to_string().into();
9191
o.vendor = self.vendor.clone().into();
9292
// TODO: Investigate if main_needs_argc_argv is useful (for building exes)

crates/spirv-builder/target-specs/spirv-unknown-opengl4.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-opengl4.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-opengl4.2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-opengl4.3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-opengl4.5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-spv1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-spv1.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-spv1.2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-spv1.3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-spv1.4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-spv1.5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-vulkan1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-vulkan1.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-vulkan1.1spv1.4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

crates/spirv-builder/target-specs/spirv-unknown-vulkan1.2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"arch": "spirv",
44
"crt-objects-fallback": "false",
55
"crt-static-allows-dylibs": true,
6+
"crt-static-respected": true,
67
"data-layout": "e-m:e-p:32:32:32-i64:64-n8:16:32:64",
78
"dll-prefix": "",
89
"dll-suffix": ".spv.json",
@@ -19,7 +20,6 @@
1920
"std": null,
2021
"tier": null
2122
},
22-
"os": "unknown",
2323
"panic-strategy": "abort",
2424
"simd-types-indirect": false,
2525
"target-pointer-width": "32"

0 commit comments

Comments
 (0)