mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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).
This commit is contained in:
@@ -354,6 +354,7 @@ function (swift_benchmark_compile_archopts)
|
||||
set(common_options
|
||||
"-c"
|
||||
"-target" "${target}"
|
||||
"-module-cache-path" "${CMAKE_CURRENT_BINARY_DIR}/modulecache"
|
||||
"-${BENCH_COMPILE_ARCHOPTS_OPT}" ${PAGE_ALIGNMENT_OPTION})
|
||||
#"-Xfrontend" "-enable-experimental-feature"
|
||||
#"-Xfrontend" "LayoutPrespecialization")
|
||||
|
||||
Reference in New Issue
Block a user