Skip to content

Commit f6dae10

Browse files
authored
fix: intermediate-dir for msvc cl (#80)
1 parent 3fdaed4 commit f6dae10

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ecsact/cli/commands/build/recipe/cook.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ auto cl_compile(compile_options options) -> int {
502502
cl_args.push_back("/O2");
503503
cl_args.push_back("/GL");
504504
cl_args.push_back("/MP");
505+
cl_args.push_back("/Fo:"); // typos:disable-line
506+
cl_args.push_back(
507+
std::format("{}\\", fs::path{options.work_dir}.lexically_normal().string())
508+
);
505509

506510
auto generated_defines =
507511
ecsact::cli::cc_defines_gen(options.imports, options.exports);

typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[files]
22
extend-exclude = ["CHANGELOG.md"]
3+
4+
[default]
5+
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*typos:disable-line$"]

0 commit comments

Comments
 (0)