File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ pub(crate) fn benchmark(dirs: &Dirs, compiler: &Compiler) {
73
73
bench_runs,
74
74
Some ( & clean_cmd) ,
75
75
& [
76
- ( "cargo build" , & llvm_build_cmd) ,
76
+ // ("cargo build", &llvm_build_cmd),
77
77
( "cargo-clif build" , & clif_build_cmd) ,
78
78
( "cargo-clif build --release" , & clif_build_opt_cmd) ,
79
79
] ,
@@ -88,6 +88,8 @@ pub(crate) fn benchmark(dirs: &Dirs, compiler: &Compiler) {
88
88
gha_step_summary. write_all ( b"\n " ) . unwrap ( ) ;
89
89
}
90
90
91
+ return ;
92
+
91
93
eprintln ! ( "[BENCH RUN] ebobby/simple-raytracer" ) ;
92
94
93
95
let bench_run_markdown = dirs. build_dir . join ( "bench_run.md" ) ;
@@ -103,7 +105,7 @@ pub(crate) fn benchmark(dirs: &Dirs, compiler: &Compiler) {
103
105
bench_runs,
104
106
None ,
105
107
& [
106
- ( "" , raytracer_cg_llvm. to_str ( ) . unwrap ( ) ) ,
108
+ // ("", raytracer_cg_llvm.to_str().unwrap()),
107
109
( "" , raytracer_cg_clif. to_str ( ) . unwrap ( ) ) ,
108
110
( "" , raytracer_cg_clif_opt. to_str ( ) . unwrap ( ) ) ,
109
111
] ,
Original file line number Diff line number Diff line change @@ -95,7 +95,8 @@ pub(crate) fn import_function<'tcx>(
95
95
) -> FuncId {
96
96
let name = tcx. symbol_name ( inst) . name ;
97
97
let sig = get_function_sig ( tcx, module. target_config ( ) . default_call_conv , inst) ;
98
- match module. declare_function ( name, Linkage :: Import , & sig) {
98
+ match module. declare_function ( name. strip_prefix ( "\u{1} " ) . unwrap_or ( name) , Linkage :: Import , & sig)
99
+ {
99
100
Ok ( func_id) => func_id,
100
101
Err ( ModuleError :: IncompatibleDeclaration ( _) ) => tcx. dcx ( ) . fatal ( format ! (
101
102
"attempt to declare `{name}` as function, but it was already declared as static"
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ fn data_id_for_static(
286
286
} ;
287
287
288
288
let data_id = match module. declare_data (
289
- symbol_name,
289
+ symbol_name. strip_prefix ( " \u{1} " ) . unwrap_or ( symbol_name ) ,
290
290
linkage,
291
291
false ,
292
292
attrs. flags . contains ( CodegenFnAttrFlags :: THREAD_LOCAL ) ,
@@ -334,7 +334,7 @@ fn data_id_for_static(
334
334
} ;
335
335
336
336
let data_id = match module. declare_data (
337
- symbol_name,
337
+ symbol_name. strip_prefix ( " \u{1} " ) . unwrap_or ( symbol_name ) ,
338
338
linkage,
339
339
definition_writable,
340
340
attrs. flags . contains ( CodegenFnAttrFlags :: THREAD_LOCAL ) ,
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ extern crate rustc_fs_util;
27
27
extern crate rustc_hir;
28
28
extern crate rustc_incremental;
29
29
extern crate rustc_index;
30
+ extern crate rustc_macros;
30
31
extern crate rustc_metadata;
32
+ extern crate rustc_query_system;
31
33
extern crate rustc_session;
32
34
extern crate rustc_span;
33
35
extern crate rustc_symbol_mangling;
You can’t perform that action at this time.
0 commit comments