about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-09-17 13:46:46 +1000
committerZalathar <Zalathar@users.noreply.github.com>2025-09-18 15:25:25 +1000
commit8b0a25486040b91ede0120ff5a797517e0973895 (patch)
treef2881c17bd25c544486cdd82630c32f6c504fe68 /compiler/rustc_codegen_llvm/src/llvm
parent93117677d857bb7c3f12c9dc500d77839f8fb13d (diff)
downloadrust-8b0a25486040b91ede0120ff5a797517e0973895.tar.gz
rust-8b0a25486040b91ede0120ff5a797517e0973895.zip
Move target machine command-line quoting from C++ to Rust
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 71d8b7d25fe..c1b5649a582 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2488,8 +2488,10 @@ unsafe extern "C" {
         OutputObjFile: *const c_char,
         DebugInfoCompression: *const c_char,
         UseEmulatedTls: bool,
-        ArgsCstrBuff: *const c_uchar, // See "PTR_LEN_STR".
-        ArgsCstrBuffLen: usize,
+        Argv0: *const c_uchar, // See "PTR_LEN_STR".
+        Argv0Len: size_t,
+        CommandLineArgs: *const c_uchar, // See "PTR_LEN_STR".
+        CommandLineArgsLen: size_t,
         UseWasmEH: bool,
     ) -> *mut TargetMachine;