Skip to content

Commit 5ca6aa4

Browse files
committed
fix(cli): force CMake fallback for scripts using Vix runtime
2 parents db48298 + 6304b31 commit 5ca6aa4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/commands/run/detail/ScriptProbe.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,15 @@ namespace vix::commands::RunCommand::detail
556556
out.features = detect_script_features(opt.cppFile);
557557
out.usesVixRuntime = out.features.usesVix;
558558

559+
if (out.features.usesVix)
560+
{
561+
out.strategy = ScriptExecutionStrategy::CMakeFallback;
562+
out.fallbackReason = ScriptFallbackReason::UsesVixRuntime;
563+
out.canUseDirectCompile = false;
564+
out.shouldUseCMakeFallback = true;
565+
return out;
566+
}
567+
559568
out.compileFlags = parse_compile_flags(opt.scriptFlags);
560569
out.linkFlags = parse_link_flags(opt.scriptFlags);
561570

0 commit comments

Comments
 (0)