@@ -28,17 +28,17 @@ ensure_dir: (dir: fs::path) = {
28
28
}
29
29
}
30
30
31
- modules_dir: () modules_dir(fs::current_path());
31
+ modules_dir: () = modules_dir(fs::current_path());
32
32
modules_dir: (base: fs::path) -> fs::path = {
33
33
return base / ".cache" / "cpp2" / "mod";
34
34
}
35
35
36
- binaries_dir: () binaries_dir(fs::current_path());
36
+ binaries_dir: () = binaries_dir(fs::current_path());
37
37
binaries_dir: (base: fs::path) -> fs::path = {
38
38
return base / ".cache" / "cpp2" / "bin";
39
39
}
40
40
41
- find_closest_file: (filename) find_closest_file(filename, fs::current_path());
41
+ find_closest_file: (filename) = find_closest_file(filename, fs::current_path());
42
42
find_closest_file: (filename, base: fs::path) -> std::optional<fs::path> = {
43
43
if fs::exists(base / filename) {
44
44
return base / filename;
@@ -267,7 +267,7 @@ build_cpp1_module: (name: std::string, sources, module_deps) = {
267
267
cwd := fs::current_path();
268
268
fs::current_path(d);
269
269
duration: std::chrono::milliseconds;
270
- exit_code := measure(:() std::system(cmd_str$.c_str()), out duration);
270
+ exit_code := measure(:()= std::system(cmd_str$.c_str()), out duration);
271
271
fs::current_path(cwd);
272
272
273
273
log_info("compile module {} ({}ms)", name, duration.count());
@@ -456,7 +456,7 @@ transpile_cpp2: (src: fs::path, out_dir: fs::path) -> transpile_cpp2_result = {
456
456
ensure_dir(result.cpp1_output.parent_path());
457
457
458
458
result.cppfront_exit_code = measure(
459
- :() std::system(cmd_str$.c_str()),
459
+ :()= std::system(cmd_str$.c_str()),
460
460
out result.duration,
461
461
);
462
462
@@ -622,7 +622,7 @@ build_binary: (info: cpp2b_source_binary_info) -> build_binary_result = {
622
622
623
623
result: build_binary_result = ();
624
624
result.outpath = bin_outpath;
625
- result.exit_code = measure(:() std::system(cmd_str$.c_str()), out result.duration);
625
+ result.exit_code = measure(:()= std::system(cmd_str$.c_str()), out result.duration);
626
626
result.log_path = log_path;
627
627
return result;
628
628
}
@@ -642,7 +642,7 @@ cpp2b_detail_build_binary_name: (
642
642
643
643
bin := std::ranges::find_if(
644
644
impl*.bins*,
645
- :(bin) fs::absolute(bin.src).replace_extension("") == fs::absolute(p$).replace_extension(""),
645
+ :(bin)= fs::absolute(bin.src).replace_extension("") == fs::absolute(p$).replace_extension(""),
646
646
);
647
647
if bin == impl*.bins*..end() {
648
648
log_warning("cannot name unknown binary target {}", p.generic_string());
@@ -714,7 +714,7 @@ build_build_script: (info: cpp2b_source_build_info) -> build_binary_result = {
714
714
715
715
result: build_binary_result = ();
716
716
result.outpath = bin_outpath;
717
- result.exit_code = measure(:() std::system(cmd_str$.c_str()), out result.duration);
717
+ result.exit_code = measure(:()= std::system(cmd_str$.c_str()), out result.duration);
718
718
result.log_path = log_path;
719
719
return result;
720
720
}
0 commit comments