Skip to content

Commit 61fa5d9

Browse files
committed
[benchmark] Add some banners that show the organization of the file cmake file.
rdar://40541972
1 parent ba9cc17 commit 61fa5d9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

benchmark/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ endif()
2626

2727
include(AddSwiftBenchmarkSuite)
2828

29+
#===-----------------------------------------------------------------------===#
30+
# Declarative Description of Benchmarks
31+
#===-----------------------------------------------------------------------===#
32+
2933
set(SWIFT_BENCH_MODULES
3034
single-source/Ackermann
3135
single-source/AngryPhonebook
@@ -191,6 +195,10 @@ set(BENCH_DRIVER_LIBRARY_MODULES
191195
utils/DriverUtils
192196
)
193197

198+
#===-----------------------------------------------------------------------===#
199+
# Build Configuration
200+
#===-----------------------------------------------------------------------===#
201+
194202
add_definitions(-DSWIFT_EXEC -DSWIFT_LIBRARY_PATH -DONLY_PLATFORMS
195203
-DSWIFT_OPTIMIZATION_LEVELS -DSWIFT_BENCHMARK_EMIT_SIB)
196204

@@ -278,6 +286,10 @@ set(BENCHOPTS_MULTITHREADED
278286
"-whole-module-optimization" "-num-threads" "4")
279287
set(BENCHOPTS_SINGLEFILE "")
280288

289+
#===-----------------------------------------------------------------------===#
290+
# SDK Configuration
291+
#===-----------------------------------------------------------------------===#
292+
281293
set(macosx_arch "x86_64")
282294
set(iphoneos_arch "arm64" "armv7")
283295
set(appletvos_arch "arm64")
@@ -307,6 +319,10 @@ foreach(platform ${ONLY_PLATFORMS})
307319
endif()
308320
endforeach()
309321

322+
#===---------------------------------------------------------------------===#
323+
# Statement of Configuration for Build Users
324+
#===---------------------------------------------------------------------===#
325+
310326
message("--")
311327
message("-- Swift Benchmark Suite:")
312328
message("-- SWIFT_BENCHMARK_BUILT_STANDALONE = ${SWIFT_BENCHMARK_BUILT_STANDALONE}")
@@ -323,6 +339,10 @@ foreach(sdk ${sdks})
323339
message("-- ${sdk}")
324340
endforeach()
325341

342+
#===---------------------------------------------------------------------===#
343+
# Build Rule Generation
344+
#===---------------------------------------------------------------------===#
345+
326346
set(executable_targets)
327347

328348
set(srcdir "${CMAKE_CURRENT_SOURCE_DIR}")

0 commit comments

Comments
 (0)