Skip to content

Commit 8953d68

Browse files
committed
benchmarks: use dedicated module-cache directory for building the benchmarks
So that it cannot interfere with some leftovers from other compiler runs. This is important for SDK modules which are generated from swiftinterface files (like Foundation). The cached SDK module should be built with the compiler to benchmark (and not being reused from other compiler runs).
1 parent 9f225d6 commit 8953d68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ function (swift_benchmark_compile_archopts)
354354
set(common_options
355355
"-c"
356356
"-target" "${target}"
357+
"-module-cache-path" "${CMAKE_CURRENT_BINARY_DIR}/modulecache"
357358
"-${BENCH_COMPILE_ARCHOPTS_OPT}" ${PAGE_ALIGNMENT_OPTION})
358359
#"-Xfrontend" "-enable-experimental-feature"
359360
#"-Xfrontend" "LayoutPrespecialization")

0 commit comments

Comments
 (0)