Skip to content

Commit f22c266

Browse files
committed
fix: add required '=' due to latest cppfront change
1 parent e15dcde commit f22c266

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main.cpp2

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ ensure_dir: (dir: fs::path) = {
2828
}
2929
}
3030

31-
modules_dir: () modules_dir(fs::current_path());
31+
modules_dir: () = modules_dir(fs::current_path());
3232
modules_dir: (base: fs::path) -> fs::path = {
3333
return base / ".cache" / "cpp2" / "mod";
3434
}
3535

36-
binaries_dir: () binaries_dir(fs::current_path());
36+
binaries_dir: () = binaries_dir(fs::current_path());
3737
binaries_dir: (base: fs::path) -> fs::path = {
3838
return base / ".cache" / "cpp2" / "bin";
3939
}
4040

41-
find_closest_file: (filename) find_closest_file(filename, fs::current_path());
41+
find_closest_file: (filename) = find_closest_file(filename, fs::current_path());
4242
find_closest_file: (filename, base: fs::path) -> std::optional<fs::path> = {
4343
if fs::exists(base / filename) {
4444
return base / filename;
@@ -267,7 +267,7 @@ build_cpp1_module: (name: std::string, sources, module_deps) = {
267267
cwd := fs::current_path();
268268
fs::current_path(d);
269269
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);
271271
fs::current_path(cwd);
272272

273273
log_info("compile module {} ({}ms)", name, duration.count());
@@ -456,7 +456,7 @@ transpile_cpp2: (src: fs::path, out_dir: fs::path) -> transpile_cpp2_result = {
456456
ensure_dir(result.cpp1_output.parent_path());
457457

458458
result.cppfront_exit_code = measure(
459-
:() std::system(cmd_str$.c_str()),
459+
:()=std::system(cmd_str$.c_str()),
460460
out result.duration,
461461
);
462462

@@ -622,7 +622,7 @@ build_binary: (info: cpp2b_source_binary_info) -> build_binary_result = {
622622

623623
result: build_binary_result = ();
624624
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);
626626
result.log_path = log_path;
627627
return result;
628628
}
@@ -642,7 +642,7 @@ cpp2b_detail_build_binary_name: (
642642

643643
bin := std::ranges::find_if(
644644
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(""),
646646
);
647647
if bin == impl*.bins*..end() {
648648
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 = {
714714

715715
result: build_binary_result = ();
716716
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);
718718
result.log_path = log_path;
719719
return result;
720720
}

0 commit comments

Comments
 (0)