There was an error while loading. Please reload this page.
1 parent 9b5ab5d commit 7f6e936Copy full SHA for 7f6e936
1 file changed
.agents/docs/2026-09-12-622-verify.sh
@@ -74,9 +74,12 @@ cat > "$d/build.mcpp" <<'CPP'
74
import mcpp;
75
#include <string>
76
int main() {
77
+ // An action runs with the build directory as its cwd, so the source is
78
+ // named by its absolute path; the manifest directory is the anchor.
79
+ const std::string in = std::string(mcpp::manifest_dir()) + "/gen/in.txt";
80
const std::string out = std::string(mcpp::out_dir()) + "/res.bin";
81
mcpp::action a; a.id = "gen:res"; a.role = "source";
- a.arg("/bin/cp").arg("gen/in.txt").arg(out.c_str()).input("gen/in.txt").output(out.c_str()).submit();
82
+ a.arg("/bin/cp").arg(in.c_str()).arg(out.c_str()).input(in.c_str()).output(out.c_str()).submit();
83
mcpp::deploy(out.c_str(), "dep.resources");
84
return 0;
85
}
0 commit comments