File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,14 +197,23 @@ def build_rust(self):
197197 cc2rs_dir = parent / "libcc2rs" / "target" / "release"
198198 libc_dir = parent / "libc-dep" / "target" / "release"
199199 cmd = [
200- "rustc" ,
201- "+" + read_rust_version (),
202- "main.rs" ,
203- "-C" , "opt-level=3" , # Equivalent to --release
204- "-C" , "strip=symbols" ,
205- "--out-dir" , str (self .tmp_dir ),
206- "-L" , f"dependency={ cc2rs_dir / 'deps' } " ,
207- "--extern" , f"libcc2rs={ cc2rs_dir / 'liblibcc2rs.rlib' } " ,
200+ "rustc" ,
201+ "+" + read_rust_version (),
202+ "main.rs" ,
203+ "-A" ,
204+ "warnings" ,
205+ "-C" ,
206+ "opt-level=3" , # Equivalent to --release
207+ "-C" ,
208+ "strip=symbols" ,
209+ "-C" ,
210+ "panic=abort" ,
211+ "--out-dir" ,
212+ str (self .tmp_dir ),
213+ "-L" ,
214+ f"dependency={ cc2rs_dir / 'deps' } " ,
215+ "--extern" ,
216+ f"libcc2rs={ cc2rs_dir / 'liblibcc2rs.rlib' } " ,
208217 ]
209218 if self .model == "unsafe" :
210219 cmd += ["--extern" , f"libc={ libc_dir / 'liblibc_dep.rlib' } " ]
You can’t perform that action at this time.
0 commit comments