Skip to content

Commit 3073c5d

Browse files
committed
parallel-benchmark: append ".exe" to worker_path on _WIN32
1 parent ce68a25 commit 3073c5d

File tree

1 file changed

+5
-0
lines changed
  • tools/parallel-benchmark

1 file changed

+5
-0
lines changed

tools/parallel-benchmark/nob.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ bool single_build(Config config)
6666
const char *worker_type = config.worker_type;
6767
size_t worker_count = config.worker_count;
6868
size_t max_procs = config.max_procs;
69+
#ifdef _WIN32
70+
const char *worker_path = temp_sprintf(BUILD_FOLDER"%s.exe", worker_type);
71+
#else
72+
const char *worker_path = temp_sprintf(BUILD_FOLDER"%s", worker_type);
73+
#endif
6974

7075
for (size_t i = 0; i < worker_count; ++i) {
7176
cmd_append(&cmd, worker_path);

0 commit comments

Comments
 (0)