diff --git a/MicroBenchmarks/LCALS/SubsetALambdaLoops/CMakeLists.txt b/MicroBenchmarks/LCALS/SubsetALambdaLoops/CMakeLists.txt index 2ce81fb9a1..512bb08d88 100644 --- a/MicroBenchmarks/LCALS/SubsetALambdaLoops/CMakeLists.txt +++ b/MicroBenchmarks/LCALS/SubsetALambdaLoops/CMakeLists.txt @@ -1,4 +1,5 @@ -list(APPEND CPPFLAGS -std=c++11 -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) +list(APPEND CPPFLAGS -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) llvm_test_run() llvm_test_executable(lcalsALambda ../main.cxx LambdaSubsetAbenchmarks.cxx ../LCALSStats.cxx ../LCALSSuite.cxx ../LCALSTraversalMethods.cxx ../runReferenceLoops.cxx) +set_property(TARGET lcalsALambda PROPERTY CXX_STANDARD 11) target_link_libraries(lcalsALambda benchmark) diff --git a/MicroBenchmarks/LCALS/SubsetARawLoops/CMakeLists.txt b/MicroBenchmarks/LCALS/SubsetARawLoops/CMakeLists.txt index e833b1ad38..313591be20 100644 --- a/MicroBenchmarks/LCALS/SubsetARawLoops/CMakeLists.txt +++ b/MicroBenchmarks/LCALS/SubsetARawLoops/CMakeLists.txt @@ -1,4 +1,5 @@ -list(APPEND CPPFLAGS -std=c++11 -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) +list(APPEND CPPFLAGS -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) llvm_test_run() llvm_test_executable(lcalsARaw ../main.cxx RawSubsetAbenchmarks.cxx ../LCALSStats.cxx ../LCALSSuite.cxx ../runReferenceLoops.cxx) +set_property(TARGET lcalsARaw PROPERTY CXX_STANDARD 11) target_link_libraries(lcalsARaw benchmark) diff --git a/MicroBenchmarks/LCALS/SubsetBLambdaLoops/CMakeLists.txt b/MicroBenchmarks/LCALS/SubsetBLambdaLoops/CMakeLists.txt index 8eed0260bd..b8963dced6 100644 --- a/MicroBenchmarks/LCALS/SubsetBLambdaLoops/CMakeLists.txt +++ b/MicroBenchmarks/LCALS/SubsetBLambdaLoops/CMakeLists.txt @@ -1,5 +1,6 @@ -list(APPEND CPPFLAGS -std=c++11 -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) +list(APPEND CPPFLAGS -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) llvm_test_run() llvm_test_executable(lcalsBLambda ../main.cxx LambdaSubsetBbenchmarks.cxx ../LCALSStats.cxx ../LCALSSuite.cxx ../LCALSTraversalMethods.cxx ../runReferenceLoops.cxx) +set_property(TARGET lcalsBLambda PROPERTY CXX_STANDARD 11) target_link_libraries(lcalsBLambda benchmark) diff --git a/MicroBenchmarks/LCALS/SubsetBRawLoops/CMakeLists.txt b/MicroBenchmarks/LCALS/SubsetBRawLoops/CMakeLists.txt index 35f16f8dca..69a34a8963 100644 --- a/MicroBenchmarks/LCALS/SubsetBRawLoops/CMakeLists.txt +++ b/MicroBenchmarks/LCALS/SubsetBRawLoops/CMakeLists.txt @@ -1,5 +1,6 @@ -list(APPEND CPPFLAGS -std=c++11 -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) +list(APPEND CPPFLAGS -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) llvm_test_run() llvm_test_executable(lcalsBRaw ../main.cxx RawSubsetBbenchmarks.cxx ../LCALSStats.cxx ../LCALSSuite.cxx ../LCALSTraversalMethods.cxx ../runReferenceLoops.cxx) +set_property(TARGET lcalsBRaw PROPERTY CXX_STANDARD 11) target_link_libraries(lcalsBRaw benchmark) diff --git a/MicroBenchmarks/LCALS/SubsetCLambdaLoops/CMakeLists.txt b/MicroBenchmarks/LCALS/SubsetCLambdaLoops/CMakeLists.txt index df87bed570..d0668223b4 100644 --- a/MicroBenchmarks/LCALS/SubsetCLambdaLoops/CMakeLists.txt +++ b/MicroBenchmarks/LCALS/SubsetCLambdaLoops/CMakeLists.txt @@ -1,5 +1,6 @@ -list(APPEND CPPFLAGS -std=c++11 -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) +list(APPEND CPPFLAGS -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) #llvm_test_run(--benchmark_repetitions=5) llvm_test_run() llvm_test_executable(lcalsCLambda ../main.cxx LambdaSubsetCbenchmarks.cxx ../LCALSStats.cxx ../LCALSSuite.cxx ../LCALSTraversalMethods.cxx ../runReferenceLoops.cxx) +set_property(TARGET lcalsCLambda PROPERTY CXX_STANDARD 11) target_link_libraries(lcalsCLambda benchmark) diff --git a/MicroBenchmarks/LCALS/SubsetCRawLoops/CMakeLists.txt b/MicroBenchmarks/LCALS/SubsetCRawLoops/CMakeLists.txt index f8685fa3d1..faa0aa4129 100644 --- a/MicroBenchmarks/LCALS/SubsetCRawLoops/CMakeLists.txt +++ b/MicroBenchmarks/LCALS/SubsetCRawLoops/CMakeLists.txt @@ -1,4 +1,5 @@ -list(APPEND CPPFLAGS -std=c++11 -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) +list(APPEND CPPFLAGS -DLCALS_USE_DOUBLE -DLCALS_USE_RESTRICT_PTR -DLCALS_VERIFY_CHECKSUM -DLCALS_USE_CLOCK -DLCALS_COMPILER_CLANG) llvm_test_run() llvm_test_executable(lcalsCRaw ../main.cxx RawSubsetCbenchmarks.cxx ../LCALSStats.cxx ../LCALSSuite.cxx ../LCALSTraversalMethods.cxx ../runReferenceLoops.cxx) +set_property(TARGET lcalsCRaw PROPERTY CXX_STANDARD 11) target_link_libraries(lcalsCRaw benchmark) diff --git a/MicroBenchmarks/MemFunctions/CMakeLists.txt b/MicroBenchmarks/MemFunctions/CMakeLists.txt index 2421eb1879..aee9f4a3bb 100644 --- a/MicroBenchmarks/MemFunctions/CMakeLists.txt +++ b/MicroBenchmarks/MemFunctions/CMakeLists.txt @@ -1,7 +1,6 @@ -list(APPEND CPPFLAGS -std=c++11) - llvm_test_run() llvm_test_executable(MemFunctions main.cpp) +set_property(TARGET MemFunctions PROPERTY CXX_STANDARD 11) target_link_libraries(MemFunctions benchmark) diff --git a/MicroBenchmarks/XRay/FDRMode/CMakeLists.txt b/MicroBenchmarks/XRay/FDRMode/CMakeLists.txt index d5c2898e91..b8b81c2939 100644 --- a/MicroBenchmarks/XRay/FDRMode/CMakeLists.txt +++ b/MicroBenchmarks/XRay/FDRMode/CMakeLists.txt @@ -1,8 +1,9 @@ # FDRMode test is failing on Darwin because # `__xray_log_select_mode("xray-fdr")` returns `XRAY_MODE_NOT_FOUND`. -list(APPEND CPPFLAGS -std=c++11 -Wl,--gc-sections -fxray-instrument) +list(APPEND CPPFLAGS -Wl,--gc-sections -fxray-instrument) list(APPEND LDFLAGS -fxray-instrument) llvm_test_run() llvm_test_executable(fdrmode-bench fdrmode-bench.cc) +set_property(TARGET fdrmode-bench PROPERTY CXX_STANDARD 11) target_link_libraries(fdrmode-bench benchmark) diff --git a/MicroBenchmarks/XRay/ReturnReference/CMakeLists.txt b/MicroBenchmarks/XRay/ReturnReference/CMakeLists.txt index e4d289f760..1a76416061 100644 --- a/MicroBenchmarks/XRay/ReturnReference/CMakeLists.txt +++ b/MicroBenchmarks/XRay/ReturnReference/CMakeLists.txt @@ -5,8 +5,9 @@ # 'MicroBenchmarks/XRay/ReturnReference/CMakeFiles/retref-bench.dir/retref-bench.cc.o' # for architecture x86_64 -list(APPEND CPPFLAGS -std=c++11 -Wl,--gc-sections -fxray-instrument) +list(APPEND CPPFLAGS -Wl,--gc-sections -fxray-instrument) list(APPEND LDFLAGS -fxray-instrument) llvm_test_run() llvm_test_executable(retref-bench retref-bench.cc) +set_property(TARGET hatref-bench PROPERTY CXX_STANDARD 11) target_link_libraries(retref-bench benchmark) diff --git a/MicroBenchmarks/harris/CMakeLists.txt b/MicroBenchmarks/harris/CMakeLists.txt index 189badbc37..9f0ce5c583 100644 --- a/MicroBenchmarks/harris/CMakeLists.txt +++ b/MicroBenchmarks/harris/CMakeLists.txt @@ -1,9 +1,10 @@ -list(APPEND CPPFLAGS -std=c++11 -ffast-math) +list(APPEND CPPFLAGS -ffast-math) llvm_test_run(WORKDIR %S) llvm_test_verify_hash_program_output(%S/output.txt) llvm_test_verify(%b/${FPCMP} %S/harris.reference_output %S/output.txt) llvm_test_executable(harris harrisKernel.cpp main.cpp) +set_property(TARGET harris PROPERTY CXX_STANDARD 11) target_link_libraries(harris benchmark) llvm_test_data(harris harris.reference_output) diff --git a/MultiSource/Applications/Burg/CMakeLists.txt b/MultiSource/Applications/Burg/CMakeLists.txt index dfa9d4c588..65c2855441 100644 --- a/MultiSource/Applications/Burg/CMakeLists.txt +++ b/MultiSource/Applications/Burg/CMakeLists.txt @@ -1,7 +1,8 @@ list(APPEND CPPFLAGS -DDEBUG) -list(APPEND CFLAGS -std=gnu89 -Wno-int-conversion) +list(APPEND CFLAGS -Wno-int-conversion) set(RUN_OPTIONS < sample.gr) include_directories(${CMAKE_CURRENT_BINARY_DIR}) llvm_multisource(burg) +set_property(TARGET burg PROPERTY C_STANDARD 90) llvm_test_data(burg sample.gr) diff --git a/MultiSource/Applications/ClamAV/CMakeLists.txt b/MultiSource/Applications/ClamAV/CMakeLists.txt index a26fba1733..830b1cc5c5 100644 --- a/MultiSource/Applications/ClamAV/CMakeLists.txt +++ b/MultiSource/Applications/ClamAV/CMakeLists.txt @@ -175,6 +175,7 @@ llvm_multisource(clamscan zlib_uncompr.c zlib_zutil.c ) +set_property(TARGET clamscan PROPERTY C_STANDARD 17) if(TARGET_OS STREQUAL "Linux") find_package(Intl REQUIRED) target_link_libraries(clamscan ${Intl_LIBRARIES}) diff --git a/MultiSource/Applications/JM/ldecod/CMakeLists.txt b/MultiSource/Applications/JM/ldecod/CMakeLists.txt index 6df880e0cb..12f6d45893 100644 --- a/MultiSource/Applications/JM/ldecod/CMakeLists.txt +++ b/MultiSource/Applications/JM/ldecod/CMakeLists.txt @@ -2,4 +2,5 @@ list(APPEND CPPFLAGS -fcommon -D__USE_LARGEFILE64 -D_FILE_OFFSET_BITS=64) list(APPEND LDFLAGS -lm) set(RUN_OPTIONS -i data/test.264 -o Output/test_dec.yuv -r data/test_rec.yuv) llvm_multisource(ldecod) +set_property(TARGET ldecod PROPERTY C_STANDARD 17) llvm_test_data(ldecod data/test.264 data/test_rec.yuv) diff --git a/MultiSource/Applications/JM/lencod/CMakeLists.txt b/MultiSource/Applications/JM/lencod/CMakeLists.txt index cd133f9c11..2e9b90d9f7 100644 --- a/MultiSource/Applications/JM/lencod/CMakeLists.txt +++ b/MultiSource/Applications/JM/lencod/CMakeLists.txt @@ -7,6 +7,7 @@ else() set(RUN_OPTIONS -d data/encoder.cfg -p InputFile=data/foreman_part_qcif_444.yuv -p LeakyBucketRateFile=data/leakybucketrate.cfg -p QmatrixFile=data/q_matrix.cfg) endif() llvm_multisource(lencod) +set_property(TARGET lencod PROPERTY C_STANDARD 17) if(SMALL_PROBLEM_SIZE) llvm_test_data(lencod data/encoder_small.cfg) else() diff --git a/MultiSource/Applications/SPASS/CMakeLists.txt b/MultiSource/Applications/SPASS/CMakeLists.txt index b9d53aaa7c..d5f14d6930 100644 --- a/MultiSource/Applications/SPASS/CMakeLists.txt +++ b/MultiSource/Applications/SPASS/CMakeLists.txt @@ -9,4 +9,5 @@ endif() set(RUN_OPTIONS ${INPUTS}) set(HASH_PROGRAM_OUTPUT 1) llvm_multisource(SPASS) +set_property(TARGET SPASS PROPERTY C_STANDARD 17) llvm_test_data(SPASS ${INPUTS}) diff --git a/MultiSource/Applications/aha/CMakeLists.txt b/MultiSource/Applications/aha/CMakeLists.txt index 4d760afc52..c11adcbf15 100644 --- a/MultiSource/Applications/aha/CMakeLists.txt +++ b/MultiSource/Applications/aha/CMakeLists.txt @@ -1 +1,2 @@ llvm_multisource(aha) +set_property(TARGET aha PROPERTY C_STANDARD 17) diff --git a/MultiSource/Applications/lemon/CMakeLists.txt b/MultiSource/Applications/lemon/CMakeLists.txt index 562f9e7692..3440d9e540 100644 --- a/MultiSource/Applications/lemon/CMakeLists.txt +++ b/MultiSource/Applications/lemon/CMakeLists.txt @@ -3,5 +3,6 @@ if(NOT TEST_SUITE_BENCHMARKING_ONLY) set(RUN_OPTIONS ${INPUTS}) set(HASH_PROGRAM_OUTPUT 1) llvm_multisource(lemon lemon.c) + set_property(TARGET lemon PROPERTY C_STANDARD 17) llvm_test_data(lemon ${INPUTS} lempar.c) endif() diff --git a/MultiSource/Applications/obsequi/CMakeLists.txt b/MultiSource/Applications/obsequi/CMakeLists.txt index 787597137a..b35cbe5b13 100644 --- a/MultiSource/Applications/obsequi/CMakeLists.txt +++ b/MultiSource/Applications/obsequi/CMakeLists.txt @@ -8,4 +8,5 @@ else() endif() set(RUN_OPTIONS < input) llvm_multisource(Obsequi) +set_property(TARGET Obsequi PROPERTY C_STANDARD 17) llvm_test_data(Obsequi input) diff --git a/MultiSource/Applications/oggenc/CMakeLists.txt b/MultiSource/Applications/oggenc/CMakeLists.txt index 047d9a4ced..bbd1dc6ffa 100644 --- a/MultiSource/Applications/oggenc/CMakeLists.txt +++ b/MultiSource/Applications/oggenc/CMakeLists.txt @@ -6,4 +6,5 @@ list(APPEND CFLAGS -ffp-contract=off -DFMA_DISABLED=1) list(APPEND LDFLAGS -lm) set(RUN_OPTIONS -Q -s 901820 - < tune) llvm_multisource(oggenc) +set_property(TARGET oggenc PROPERTY C_STANDARD 17) llvm_test_data(oggenc tune) diff --git a/MultiSource/Applications/sgefa/CMakeLists.txt b/MultiSource/Applications/sgefa/CMakeLists.txt index 2ba3ecfa2d..e103202aa4 100644 --- a/MultiSource/Applications/sgefa/CMakeLists.txt +++ b/MultiSource/Applications/sgefa/CMakeLists.txt @@ -7,3 +7,4 @@ else() list(APPEND CPPFLAGS -DSCALE=40) endif() llvm_multisource(sgefa) +set_property(TARGET sgefa PROPERTY C_STANDARD 17) diff --git a/MultiSource/Applications/spiff/CMakeLists.txt b/MultiSource/Applications/spiff/CMakeLists.txt index 34a213ae8e..6c9abbf9fc 100644 --- a/MultiSource/Applications/spiff/CMakeLists.txt +++ b/MultiSource/Applications/spiff/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND CFLAGS -Wno-implicit-int) set(RUN_OPTIONS Sample.3 Sample.4) llvm_multisource(spiff) +set_property(TARGET spiff PROPERTY C_STANDARD 17) llvm_test_data(spiff Sample.3 Sample.4) diff --git a/MultiSource/Applications/sqlite3/CMakeLists.txt b/MultiSource/Applications/sqlite3/CMakeLists.txt index 67e07db6c4..73122df83a 100644 --- a/MultiSource/Applications/sqlite3/CMakeLists.txt +++ b/MultiSource/Applications/sqlite3/CMakeLists.txt @@ -18,5 +18,6 @@ llvm_multisource(sqlite3 sqlite3.c shell.c ) +set_property(TARGET sqlite3 PROPERTY C_STANDARD 17) add_dependencies(sqlite3 sqlite_input) llvm_test_data(sqlite3 sqlite3rc commands) diff --git a/MultiSource/Benchmarks/ASCI_Purple/SMG2000/CMakeLists.txt b/MultiSource/Benchmarks/ASCI_Purple/SMG2000/CMakeLists.txt index 51580237dc..605513a787 100644 --- a/MultiSource/Benchmarks/ASCI_Purple/SMG2000/CMakeLists.txt +++ b/MultiSource/Benchmarks/ASCI_Purple/SMG2000/CMakeLists.txt @@ -7,4 +7,5 @@ else() set(RUN_OPTIONS "-n 100 40 100 -c 0.1 1.0 10.0") endif() llvm_multisource(smg2000) +set_property(TARGET smg2000 PROPERTY C_STANDARD 17) target_include_directories(smg2000 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/MultiSource/Benchmarks/BitBench/five11/CMakeLists.txt b/MultiSource/Benchmarks/BitBench/five11/CMakeLists.txt index 0626698422..9459518f9c 100644 --- a/MultiSource/Benchmarks/BitBench/five11/CMakeLists.txt +++ b/MultiSource/Benchmarks/BitBench/five11/CMakeLists.txt @@ -1,3 +1,4 @@ set(RUN_OPTIONS input-file) llvm_multisource(five11) +set_property(TARGET five11 PROPERTY C_STANDARD 17) llvm_test_data(five11 input-file) diff --git a/MultiSource/Benchmarks/Bullet/CMakeLists.txt b/MultiSource/Benchmarks/Bullet/CMakeLists.txt index 0241f5f011..8bcedac741 100644 --- a/MultiSource/Benchmarks/Bullet/CMakeLists.txt +++ b/MultiSource/Benchmarks/Bullet/CMakeLists.txt @@ -1,3 +1,4 @@ -list(APPEND CPPFLAGS -I${CMAKE_CURRENT_SOURCE_DIR}/include -std=gnu++98 -DNO_TIME) +list(APPEND CPPFLAGS -I${CMAKE_CURRENT_SOURCE_DIR}/include -DNO_TIME) list(APPEND LDFLAGS -lm) llvm_multisource(bullet) +set_property(TARGET bullet PROPERTY CXX_STANDARD 98) diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/CMakeLists.txt b/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/CMakeLists.txt index 06598407cc..25ea2d0948 100644 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/CMakeLists.txt +++ b/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/CMakeLists.txt @@ -1,6 +1,7 @@ -list(APPEND CFLAGS -std=c99 -DDOUBLE) +list(APPEND CFLAGS -DDOUBLE) list(APPEND LDFLAGS -lm) set(RUN_OPTIONS -e -x 10 -y 10 -z 10 --potDir .) llvm_multisource(CoMD) +set_property(TARGET CoMD PROPERTY C_STANDARD 99) llvm_test_data(CoMD Cu_u6.eam) diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/CMakeLists.txt b/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/CMakeLists.txt index 3ac107e285..851c4678a6 100644 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/CMakeLists.txt +++ b/MultiSource/Benchmarks/DOE-ProxyApps-C/Pathfinder/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND LDFLAGS -lm) set(RUN_OPTIONS -x medsmall1.adj_list) llvm_multisource(PathFinder) +set_property(TARGET PathFinder PROPERTY C_STANDARD 17) llvm_test_data(PathFinder medsmall1.adj_list) diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C/RSBench/CMakeLists.txt b/MultiSource/Benchmarks/DOE-ProxyApps-C/RSBench/CMakeLists.txt index 18ba7b60d8..792a436244 100644 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C/RSBench/CMakeLists.txt +++ b/MultiSource/Benchmarks/DOE-ProxyApps-C/RSBench/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS -s small -l 100000 -p 1000 -w 1000) llvm_multisource(rsbench) +set_property(TARGET rsbench PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C/SimpleMOC/CMakeLists.txt b/MultiSource/Benchmarks/DOE-ProxyApps-C/SimpleMOC/CMakeLists.txt index f55ac4aa7d..3a8b3c0aa3 100644 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C/SimpleMOC/CMakeLists.txt +++ b/MultiSource/Benchmarks/DOE-ProxyApps-C/SimpleMOC/CMakeLists.txt @@ -1,5 +1,5 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS -i default.in) llvm_multisource(SimpleMOC) +set_property(TARGET SimpleMOC PROPERTY C_STANDARD 99) llvm_test_data(SimpleMOC default.in) diff --git a/MultiSource/Benchmarks/Fhourstones/CMakeLists.txt b/MultiSource/Benchmarks/Fhourstones/CMakeLists.txt index f1286f9065..5717cbc5d5 100644 --- a/MultiSource/Benchmarks/Fhourstones/CMakeLists.txt +++ b/MultiSource/Benchmarks/Fhourstones/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND CPPFLAGS -DUNIX -DTRANSIZE=1050011 -DPROBES=8 -DREPORTPLY=8) set(RUN_OPTIONS < input) llvm_multisource(fhourstones) +set_property(TARGET fhourstones PROPERTY C_STANDARD 17) llvm_test_data(fhourstones input) diff --git a/MultiSource/Benchmarks/MallocBench/cfrac/CMakeLists.txt b/MultiSource/Benchmarks/MallocBench/cfrac/CMakeLists.txt index b35c3a135d..a8fdeff49e 100644 --- a/MultiSource/Benchmarks/MallocBench/cfrac/CMakeLists.txt +++ b/MultiSource/Benchmarks/MallocBench/cfrac/CMakeLists.txt @@ -35,3 +35,4 @@ llvm_multisource(cfrac pcfrac.c pgcd.c ) +set_property(TARGET cfrac PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/MallocBench/espresso/CMakeLists.txt b/MultiSource/Benchmarks/MallocBench/espresso/CMakeLists.txt index 3413543503..69971f5a03 100644 --- a/MultiSource/Benchmarks/MallocBench/espresso/CMakeLists.txt +++ b/MultiSource/Benchmarks/MallocBench/espresso/CMakeLists.txt @@ -1,5 +1,5 @@ list(APPEND CPPFLAGS -DNOMEMOPT) -list(APPEND CFLAGS -std=gnu89) set(RUN_OPTIONS -t INPUT/largest.espresso) llvm_multisource(espresso) +set_property(TARGET espresso PROPERTY C_STANDARD 90) llvm_test_data(espresso INPUT/largest.espresso) diff --git a/MultiSource/Benchmarks/MallocBench/gs/CMakeLists.txt b/MultiSource/Benchmarks/MallocBench/gs/CMakeLists.txt index a98dc5d429..c6a0962853 100644 --- a/MultiSource/Benchmarks/MallocBench/gs/CMakeLists.txt +++ b/MultiSource/Benchmarks/MallocBench/gs/CMakeLists.txt @@ -95,3 +95,4 @@ llvm_test_data(gs ppath.ps quit.ps ) +set_property(TARGET gs PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/McCat/15-trie/CMakeLists.txt b/MultiSource/Benchmarks/McCat/15-trie/CMakeLists.txt index 03b17ae323..67aaf6f1da 100644 --- a/MultiSource/Benchmarks/McCat/15-trie/CMakeLists.txt +++ b/MultiSource/Benchmarks/McCat/15-trie/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND LDFLAGS -lm) list(APPEND RUN_OPTIONS trie.in1) llvm_multisource(trie) +set_property(TARGET trie PROPERTY C_STANDARD 17) llvm_test_data(trie trie.in1) diff --git a/MultiSource/Benchmarks/McCat/18-imp/CMakeLists.txt b/MultiSource/Benchmarks/McCat/18-imp/CMakeLists.txt index c0428ed808..046b9e06a8 100644 --- a/MultiSource/Benchmarks/McCat/18-imp/CMakeLists.txt +++ b/MultiSource/Benchmarks/McCat/18-imp/CMakeLists.txt @@ -2,4 +2,5 @@ list(APPEND LDFLAGS -lm) list(APPEND CFLAGS -Wno-implicit-int) set(RUN_OPTIONS ./sg01.imp) llvm_multisource(imp) +set_property(TARGET imp PROPERTY C_STANDARD 17) llvm_test_data(imp sg01.imp sg01.pgm) diff --git a/MultiSource/Benchmarks/MiBench/office-ispell/CMakeLists.txt b/MultiSource/Benchmarks/MiBench/office-ispell/CMakeLists.txt index 2d1b5bf5ba..aab43dd2c3 100644 --- a/MultiSource/Benchmarks/MiBench/office-ispell/CMakeLists.txt +++ b/MultiSource/Benchmarks/MiBench/office-ispell/CMakeLists.txt @@ -3,4 +3,5 @@ list(APPEND CFLAGS -Wno-implicit-function-declaration -Wno-implicit-int) list(APPEND LDFLAGS -lm) set(RUN_OPTIONS -a -d americanmed+ < large.txt) llvm_multisource(office-ispell) +set_property(TARGET office-ispell PROPERTY C_STANDARD 17) llvm_test_data(office-ispell americanmed+.hash large.txt) diff --git a/MultiSource/Benchmarks/Olden/bh/CMakeLists.txt b/MultiSource/Benchmarks/Olden/bh/CMakeLists.txt index 502632ac93..776fe34f02 100644 --- a/MultiSource/Benchmarks/Olden/bh/CMakeLists.txt +++ b/MultiSource/Benchmarks/Olden/bh/CMakeLists.txt @@ -11,3 +11,4 @@ else() endif() endif() llvm_multisource(bh) +set_property(TARGET bh PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Olden/bisort/CMakeLists.txt b/MultiSource/Benchmarks/Olden/bisort/CMakeLists.txt index 222396073e..b85f8907c0 100644 --- a/MultiSource/Benchmarks/Olden/bisort/CMakeLists.txt +++ b/MultiSource/Benchmarks/Olden/bisort/CMakeLists.txt @@ -6,3 +6,4 @@ else() set(RUN_OPTIONS 700000) endif() llvm_multisource(bisort) +set_property(TARGET bisort PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Olden/voronoi/CMakeLists.txt b/MultiSource/Benchmarks/Olden/voronoi/CMakeLists.txt index 7ffdc4ef17..a67272a760 100644 --- a/MultiSource/Benchmarks/Olden/voronoi/CMakeLists.txt +++ b/MultiSource/Benchmarks/Olden/voronoi/CMakeLists.txt @@ -11,3 +11,4 @@ else() endif() set(HASH_PROGRAM_OUTPUT 1) llvm_multisource(voronoi) +set_property(TARGET voronoi PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/CMakeLists.txt index ee9b1b698e..f9eca890d6 100644 --- a/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/CMakeLists.txt @@ -2,3 +2,4 @@ list(APPEND CPPFLAGS -fcommon) list(APPEND CPPFLAGS -Wno-error=incompatible-pointer-types) list(APPEND LDFLAGS -lm) llvm_multisource(timberwolfmc) +set_property(TARGET timberwolfmc PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Prolangs-C/assembler/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/assembler/CMakeLists.txt index 5a7d6899da..94785e72b2 100644 --- a/MultiSource/Benchmarks/Prolangs-C/assembler/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/assembler/CMakeLists.txt @@ -1,3 +1,4 @@ list(APPEND CFLAGS -Wno-int-conversion) list(APPEND LDFLAGS -lm) llvm_multisource(assembler) +set_property(TARGET assembler PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Prolangs-C/bison/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/bison/CMakeLists.txt index 26c642f3ff..764b61e09c 100644 --- a/MultiSource/Benchmarks/Prolangs-C/bison/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/bison/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND CFLAGS -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion) set(RUN_OPTIONS parse.y.in -v) llvm_multisource(mybison) +set_property(TARGET mybison PROPERTY C_STANDARD 17) llvm_test_data(mybison parse.y.in) diff --git a/MultiSource/Benchmarks/Prolangs-C/cdecl/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/cdecl/CMakeLists.txt index d2ed585414..f587610675 100644 --- a/MultiSource/Benchmarks/Prolangs-C/cdecl/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/cdecl/CMakeLists.txt @@ -1,4 +1,4 @@ -list(APPEND CFLAGS -std=gnu89) set(RUN_OPTIONS < testset) llvm_multisource(cdecl) +set_property(TARGET cdecl PROPERTY C_STANDARD 90) llvm_test_data(cdecl testset) diff --git a/MultiSource/Benchmarks/Prolangs-C/loader/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/loader/CMakeLists.txt index 2ea972f68f..e1f3cec477 100644 --- a/MultiSource/Benchmarks/Prolangs-C/loader/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/loader/CMakeLists.txt @@ -1,3 +1,4 @@ list(APPEND CPPFLAGS -fcommon) list(APPEND LDFLAGS -lm) llvm_multisource(loader) +set_property(TARGET loader PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Prolangs-C/simulator/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/simulator/CMakeLists.txt index 2ed9d190d4..0cd7c98913 100644 --- a/MultiSource/Benchmarks/Prolangs-C/simulator/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/simulator/CMakeLists.txt @@ -1,3 +1,4 @@ list(APPEND CPPFLAGS -fcommon) list(APPEND LDFLAGS -lm) llvm_multisource(simulator) +set_property(TARGET simulator PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/Prolangs-C/unix-smail/CMakeLists.txt b/MultiSource/Benchmarks/Prolangs-C/unix-smail/CMakeLists.txt index b6ba280e85..da2de14adf 100644 --- a/MultiSource/Benchmarks/Prolangs-C/unix-smail/CMakeLists.txt +++ b/MultiSource/Benchmarks/Prolangs-C/unix-smail/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND CFLAGS -Wno-int-conversion) set(RUN_OPTIONS -v ALL < main.c) llvm_multisource(unix-smail) +set_property(TARGET unix-smail PROPERTY C_STANDARD 17) llvm_test_data(unix-smail main.c) diff --git a/MultiSource/Benchmarks/TSVC/ControlFlow-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/ControlFlow-dbl/CMakeLists.txt index 9803f747ba..1ca4ca5795 100644 --- a/MultiSource/Benchmarks/TSVC/ControlFlow-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/ControlFlow-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 2325 14) llvm_multisource(ControlFlow-dbl) +set_property(TARGET ControlFlow-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/ControlFlow-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/ControlFlow-flt/CMakeLists.txt index df293668ca..44d9d5063e 100644 --- a/MultiSource/Benchmarks/TSVC/ControlFlow-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/ControlFlow-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 2325 5) llvm_multisource(ControlFlow-flt) +set_property(TARGET ControlFlow-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/ControlLoops-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/ControlLoops-dbl/CMakeLists.txt index 9ae7aefd79..3319629fbe 100644 --- a/MultiSource/Benchmarks/TSVC/ControlLoops-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/ControlLoops-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 1640 14) llvm_multisource(ControlLoops-dbl) +set_property(TARGET ControlLoops-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/ControlLoops-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/ControlLoops-flt/CMakeLists.txt index 9a97f70c15..90593e29e4 100644 --- a/MultiSource/Benchmarks/TSVC/ControlLoops-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/ControlLoops-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 1640 5) llvm_multisource(ControlLoops-flt) +set_property(TARGET ControlLoops-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/CrossingThresholds-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/CrossingThresholds-dbl/CMakeLists.txt index c25d41b720..10e4fd8a27 100644 --- a/MultiSource/Benchmarks/TSVC/CrossingThresholds-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/CrossingThresholds-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 5880 14) llvm_multisource(CrossingThresholds-dbl) +set_property(TARGET CrossingThresholds-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/CrossingThresholds-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/CrossingThresholds-flt/CMakeLists.txt index dd92c549be..4df7792b0a 100644 --- a/MultiSource/Benchmarks/TSVC/CrossingThresholds-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/CrossingThresholds-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 5880 5) llvm_multisource(CrossingThresholds-flt) +set_property(TARGET CrossingThresholds-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Equivalencing-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Equivalencing-dbl/CMakeLists.txt index b9e1ed1bbb..dd873e5ef7 100644 --- a/MultiSource/Benchmarks/TSVC/Equivalencing-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Equivalencing-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 3125 14) llvm_multisource(Equivalencing-dbl) +set_property(TARGET Equivalencing-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Equivalencing-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Equivalencing-flt/CMakeLists.txt index a43a55adea..db5af1a04e 100644 --- a/MultiSource/Benchmarks/TSVC/Equivalencing-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Equivalencing-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 3125 5) llvm_multisource(Equivalencing-flt) +set_property(TARGET Equivalencing-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Expansion-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Expansion-dbl/CMakeLists.txt index e698834cc2..3ee50d20ce 100644 --- a/MultiSource/Benchmarks/TSVC/Expansion-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Expansion-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 4160 14) llvm_multisource(Expansion-dbl) +set_property(TARGET Expansion-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Expansion-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Expansion-flt/CMakeLists.txt index 6ddf13459a..c9fd96baa1 100644 --- a/MultiSource/Benchmarks/TSVC/Expansion-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Expansion-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 4160 5) llvm_multisource(Expansion-flt) +set_property(TARGET Expansion-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/CMakeLists.txt index 305f3a60ec..7e8ce2c62f 100644 --- a/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/GlobalDataFlow-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 3450 14) llvm_multisource(GlobalDataFlow-dbl) +set_property(TARGET GlobalDataFlow-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/CMakeLists.txt index 85a9446f1d..040b574abf 100644 --- a/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/GlobalDataFlow-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 3450 5) llvm_multisource(GlobalDataFlow-flt) +set_property(TARGET GlobalDataFlow-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/IndirectAddressing-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/IndirectAddressing-dbl/CMakeLists.txt index a719d8f86b..f79cb5c216 100644 --- a/MultiSource/Benchmarks/TSVC/IndirectAddressing-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/IndirectAddressing-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 12500 14) llvm_multisource(IndirectAddressing-dbl) +set_property(TARGET IndirectAddressing-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/IndirectAddressing-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/IndirectAddressing-flt/CMakeLists.txt index 8bf7714e9d..4af0821e04 100644 --- a/MultiSource/Benchmarks/TSVC/IndirectAddressing-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/IndirectAddressing-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 12500 5) llvm_multisource(IndirectAddressing-flt) +set_property(TARGET IndirectAddressing-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/InductionVariable-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/InductionVariable-dbl/CMakeLists.txt index d08a6fdd38..c681ea726c 100644 --- a/MultiSource/Benchmarks/TSVC/InductionVariable-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/InductionVariable-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 9100 14) llvm_multisource(InductionVariable-dbl) +set_property(TARGET InductionVariable-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/InductionVariable-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/InductionVariable-flt/CMakeLists.txt index 7122b61a24..2d4b575a2d 100644 --- a/MultiSource/Benchmarks/TSVC/InductionVariable-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/InductionVariable-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 9100 5) llvm_multisource(InductionVariable-flt) +set_property(TARGET InductionVariable-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/LinearDependence-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/LinearDependence-dbl/CMakeLists.txt index 90527ee878..c49c8928ce 100644 --- a/MultiSource/Benchmarks/TSVC/LinearDependence-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/LinearDependence-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 3570 14) llvm_multisource(LinearDependence-dbl) +set_property(TARGET LinearDependence-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/LinearDependence-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/LinearDependence-flt/CMakeLists.txt index ef71bff47e..cb76bdefa5 100644 --- a/MultiSource/Benchmarks/TSVC/LinearDependence-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/LinearDependence-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 3570 5) llvm_multisource(LinearDependence-flt) +set_property(TARGET LinearDependence-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/LoopRerolling-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/LoopRerolling-dbl/CMakeLists.txt index 23d3a522b0..d16aea495b 100644 --- a/MultiSource/Benchmarks/TSVC/LoopRerolling-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/LoopRerolling-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 5260 14) llvm_multisource(LoopRerolling-dbl) +set_property(TARGET LoopRerolling-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/LoopRerolling-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/LoopRerolling-flt/CMakeLists.txt index 0d012c4cf8..80cd3bc3f7 100644 --- a/MultiSource/Benchmarks/TSVC/LoopRerolling-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/LoopRerolling-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 5260 5) llvm_multisource(LoopRerolling-flt) +set_property(TARGET LoopRerolling-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/LoopRestructuring-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/LoopRestructuring-dbl/CMakeLists.txt index 7feca8a6ba..4ef1d4fd60 100644 --- a/MultiSource/Benchmarks/TSVC/LoopRestructuring-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/LoopRestructuring-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 4350 14) llvm_multisource(LoopRestructuring-dbl) +set_property(TARGET LoopRestructuring-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/LoopRestructuring-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/LoopRestructuring-flt/CMakeLists.txt index 8191adc698..b1c22f8626 100644 --- a/MultiSource/Benchmarks/TSVC/LoopRestructuring-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/LoopRestructuring-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 4350 5) llvm_multisource(LoopRestructuring-flt) +set_property(TARGET LoopRestructuring-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/NodeSplitting-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/NodeSplitting-dbl/CMakeLists.txt index 06d22cd929..24071f303f 100644 --- a/MultiSource/Benchmarks/TSVC/NodeSplitting-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/NodeSplitting-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 10000 14) llvm_multisource(NodeSplitting-dbl) +set_property(TARGET NodeSplitting-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/NodeSplitting-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/NodeSplitting-flt/CMakeLists.txt index fb05dcb703..db342b057b 100644 --- a/MultiSource/Benchmarks/TSVC/NodeSplitting-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/NodeSplitting-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 10000 5) llvm_multisource(NodeSplitting-flt) +set_property(TARGET NodeSplitting-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Packing-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Packing-dbl/CMakeLists.txt index accbceb65b..1128a52884 100644 --- a/MultiSource/Benchmarks/TSVC/Packing-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Packing-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 50000 14) llvm_multisource(Packing-dbl) +set_property(TARGET Packing-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Packing-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Packing-flt/CMakeLists.txt index 25e17cf7eb..5e42624061 100644 --- a/MultiSource/Benchmarks/TSVC/Packing-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Packing-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 50000 5) llvm_multisource(Packing-flt) +set_property(TARGET Packing-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Recurrences-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Recurrences-dbl/CMakeLists.txt index 407deba8dc..a48de540c1 100644 --- a/MultiSource/Benchmarks/TSVC/Recurrences-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Recurrences-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 20000 14) llvm_multisource(Recurrences-dbl) +set_property(TARGET Recurrences-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Recurrences-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Recurrences-flt/CMakeLists.txt index 984293d2d8..c1040ee647 100644 --- a/MultiSource/Benchmarks/TSVC/Recurrences-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Recurrences-flt/CMakeLists.txt @@ -1,4 +1,5 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99 -Wno-int-conversion) +list(APPEND CFLAGS -Wno-int-conversion) set(RUN_OPTIONS 20000 5) llvm_multisource(Recurrences-flt) +set_property(TARGET Recurrences-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Reductions-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Reductions-dbl/CMakeLists.txt index 779568bf1d..a0db465da1 100644 --- a/MultiSource/Benchmarks/TSVC/Reductions-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Reductions-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 1670 14) llvm_multisource(Reductions-dbl) +set_property(TARGET Reductions-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Reductions-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Reductions-flt/CMakeLists.txt index 757967d8b8..eb170e8c56 100644 --- a/MultiSource/Benchmarks/TSVC/Reductions-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Reductions-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 1670 5) llvm_multisource(Reductions-flt) +set_property(TARGET Reductions-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Searching-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Searching-dbl/CMakeLists.txt index 859d92061e..8a6a4a5821 100644 --- a/MultiSource/Benchmarks/TSVC/Searching-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Searching-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 80000 14) llvm_multisource(Searching-dbl) +set_property(TARGET Searching-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Searching-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Searching-flt/CMakeLists.txt index 124962b726..7edf8d49ae 100644 --- a/MultiSource/Benchmarks/TSVC/Searching-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Searching-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 80000 5) llvm_multisource(Searching-flt) +set_property(TARGET Searching-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/StatementReordering-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/StatementReordering-dbl/CMakeLists.txt index 8ff600e550..199ba73cdb 100644 --- a/MultiSource/Benchmarks/TSVC/StatementReordering-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/StatementReordering-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 20000 14) llvm_multisource(StatementReordering-dbl) +set_property(TARGET StatementReordering-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/StatementReordering-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/StatementReordering-flt/CMakeLists.txt index 4f1bbc8b77..877a84801e 100644 --- a/MultiSource/Benchmarks/TSVC/StatementReordering-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/StatementReordering-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 20000 5) llvm_multisource(StatementReordering-flt) +set_property(TARGET StatementReordering-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Symbolics-dbl/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Symbolics-dbl/CMakeLists.txt index 2bc1c56e5c..3db59cdfd0 100644 --- a/MultiSource/Benchmarks/TSVC/Symbolics-dbl/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Symbolics-dbl/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 9090 14) llvm_multisource(Symbolics-dbl) +set_property(TARGET Symbolics-dbl PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/TSVC/Symbolics-flt/CMakeLists.txt b/MultiSource/Benchmarks/TSVC/Symbolics-flt/CMakeLists.txt index 2c31a27865..075deeb795 100644 --- a/MultiSource/Benchmarks/TSVC/Symbolics-flt/CMakeLists.txt +++ b/MultiSource/Benchmarks/TSVC/Symbolics-flt/CMakeLists.txt @@ -1,4 +1,4 @@ list(APPEND LDFLAGS -lm) -list(APPEND CFLAGS -std=gnu99) set(RUN_OPTIONS 9090 5) llvm_multisource(Symbolics-flt) +set_property(TARGET Symbolics-flt PROPERTY C_STANDARD 99) diff --git a/MultiSource/Benchmarks/Trimaran/netbench-crc/CMakeLists.txt b/MultiSource/Benchmarks/Trimaran/netbench-crc/CMakeLists.txt index 10842892d6..32dc5f9d90 100644 --- a/MultiSource/Benchmarks/Trimaran/netbench-crc/CMakeLists.txt +++ b/MultiSource/Benchmarks/Trimaran/netbench-crc/CMakeLists.txt @@ -8,3 +8,4 @@ else() endif() endif() llvm_multisource(netbench-crc) +set_property(TARGET netbench-crc PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/VersaBench/ecbdes/CMakeLists.txt b/MultiSource/Benchmarks/VersaBench/ecbdes/CMakeLists.txt index 6f0e114c86..c44bad8c12 100644 --- a/MultiSource/Benchmarks/VersaBench/ecbdes/CMakeLists.txt +++ b/MultiSource/Benchmarks/VersaBench/ecbdes/CMakeLists.txt @@ -9,3 +9,4 @@ else() endif() endif() llvm_multisource(ecbdes) +set_property(TARGET ecbdes PROPERTY C_STANDARD 17) diff --git a/MultiSource/Benchmarks/mafft/CMakeLists.txt b/MultiSource/Benchmarks/mafft/CMakeLists.txt index 7a71ec0a12..12cd740c19 100644 --- a/MultiSource/Benchmarks/mafft/CMakeLists.txt +++ b/MultiSource/Benchmarks/mafft/CMakeLists.txt @@ -31,4 +31,5 @@ llvm_multisource(pairlocalalign suboptalign11.c tddis.c ) +set_property(TARGET pairlocalalign PROPERTY C_STANDARD 17) llvm_test_data(pairlocalalign pyruvate_decarboxylase.fasta) diff --git a/MultiSource/Benchmarks/mediabench/g721/g721encode/CMakeLists.txt b/MultiSource/Benchmarks/mediabench/g721/g721encode/CMakeLists.txt index 3f121d12ba..a825aa7258 100644 --- a/MultiSource/Benchmarks/mediabench/g721/g721encode/CMakeLists.txt +++ b/MultiSource/Benchmarks/mediabench/g721/g721encode/CMakeLists.txt @@ -8,6 +8,7 @@ llvm_multisource(encode g723_40.c g72x.c ) +set_property(TARGET encode PROPERTY C_STANDARD 17) llvm_test_data(encode SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../data clinton.pcm ) diff --git a/MultiSource/Benchmarks/nbench/CMakeLists.txt b/MultiSource/Benchmarks/nbench/CMakeLists.txt index 0a62b6c91d..db620bd2f2 100644 --- a/MultiSource/Benchmarks/nbench/CMakeLists.txt +++ b/MultiSource/Benchmarks/nbench/CMakeLists.txt @@ -3,4 +3,5 @@ list(APPEND CFLAGS -Wno-implicit-function-declaration) list(APPEND LDFLAGS -lm) llvm_multisource(nbench) +set_property(TARGET nbench PROPERTY C_STANDARD 17) llvm_test_data(nbench NNET.DAT) diff --git a/MultiSource/Benchmarks/sim/CMakeLists.txt b/MultiSource/Benchmarks/sim/CMakeLists.txt index facbc699d6..d17c566091 100644 --- a/MultiSource/Benchmarks/sim/CMakeLists.txt +++ b/MultiSource/Benchmarks/sim/CMakeLists.txt @@ -2,5 +2,6 @@ list(APPEND CPPFLAGS -DUNIX) list(APPEND CFLAGS -Wno-implicit-int) set(RUN_OPTIONS 8 tob.38-44 liv.42-48) llvm_multisource(sim) +set_property(TARGET sim PROPERTY C_STANDARD 17) llvm_test_data(sim tob.38-44 liv.42-48) diff --git a/MultiSource/UnitTests/C++11/frame_layout/CMakeLists.txt b/MultiSource/UnitTests/C++11/frame_layout/CMakeLists.txt index 4dd76c091b..04f0b51533 100644 --- a/MultiSource/UnitTests/C++11/frame_layout/CMakeLists.txt +++ b/MultiSource/UnitTests/C++11/frame_layout/CMakeLists.txt @@ -1,2 +1,2 @@ -list(APPEND CXXFLAGS -std=c++11) llvm_multisource(frame_layout) +set_property(TARGET frame_layout PROPERTY CXX_STANDARD 11) diff --git a/SingleSource/Benchmarks/Dhrystone/CMakeLists.txt b/SingleSource/Benchmarks/Dhrystone/CMakeLists.txt index 4a199ffc66..f1afc42df4 100644 --- a/SingleSource/Benchmarks/Dhrystone/CMakeLists.txt +++ b/SingleSource/Benchmarks/Dhrystone/CMakeLists.txt @@ -1,3 +1,4 @@ list(APPEND LDFLAGS -lm) list(APPEND CFLAGS -Wno-implicit-int) llvm_singlesource() +set_property(TARGET dry fldry PROPERTY C_STANDARD 17) diff --git a/SingleSource/Benchmarks/Misc/CMakeLists.txt b/SingleSource/Benchmarks/Misc/CMakeLists.txt index 30743459f3..9d101d5670 100644 --- a/SingleSource/Benchmarks/Misc/CMakeLists.txt +++ b/SingleSource/Benchmarks/Misc/CMakeLists.txt @@ -52,3 +52,4 @@ if(ARCH STREQUAL "AArch64") endif() endif() llvm_singlesource() +set_property(TARGET flops PROPERTY C_STANDARD 17) diff --git a/SingleSource/Benchmarks/Shootout/CMakeLists.txt b/SingleSource/Benchmarks/Shootout/CMakeLists.txt index 1d72b30831..dee15e9bf2 100644 --- a/SingleSource/Benchmarks/Shootout/CMakeLists.txt +++ b/SingleSource/Benchmarks/Shootout/CMakeLists.txt @@ -19,3 +19,4 @@ if(NOT TEST_SUITE_BENCHMARKING_ONLY) list(APPEND Source hello.c) endif() llvm_singlesource(PREFIX Shootout-) +set_property(TARGET Shootout-methcall Shootout-objinst PROPERTY C_STANDARD 17) diff --git a/SingleSource/Benchmarks/SmallPT/CMakeLists.txt b/SingleSource/Benchmarks/SmallPT/CMakeLists.txt index 7f5fd2287c..33be0d85bc 100644 --- a/SingleSource/Benchmarks/SmallPT/CMakeLists.txt +++ b/SingleSource/Benchmarks/SmallPT/CMakeLists.txt @@ -1,4 +1,4 @@ -list(APPEND CXXFLAGS -std=gnu++98) list(APPEND LDFLAGS -lm) set(FP_TOLERANCE 0.001) llvm_singlesource() +set_property(TARGET smallpt PROPERTY CXX_STANDARD 98) diff --git a/SingleSource/UnitTests/C++11/CMakeLists.txt b/SingleSource/UnitTests/C++11/CMakeLists.txt index 9f0a3d7ef1..7c8483ea27 100644 --- a/SingleSource/UnitTests/C++11/CMakeLists.txt +++ b/SingleSource/UnitTests/C++11/CMakeLists.txt @@ -1,4 +1,4 @@ -list(APPEND CXXFLAGS -std=c++11 -pthread) +list(APPEND CXXFLAGS -pthread) list(APPEND LDFLAGS -pthread) file(GLOB Source RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cpp) @@ -7,3 +7,4 @@ if(${CMAKE_EXE_LINKER_FLAGS} MATCHES "-static") endif() llvm_singlesource() +set_property(TARGET stdthreadbug PROPERTY CXX_STANDARD 11) diff --git a/SingleSource/UnitTests/Vector/AArch64/CMakeLists.txt b/SingleSource/UnitTests/Vector/AArch64/CMakeLists.txt index 57f1222b67..1e088c5dd0 100644 --- a/SingleSource/UnitTests/Vector/AArch64/CMakeLists.txt +++ b/SingleSource/UnitTests/Vector/AArch64/CMakeLists.txt @@ -1,2 +1,2 @@ -list(APPEND CFLAGS -std=c99) llvm_singlesource() +set_property(TARGET aarch64_neon_intrinsics PROPERTY C_STANDARD 99) diff --git a/SingleSource/UnitTests/Vector/NEON/CMakeLists.txt b/SingleSource/UnitTests/Vector/NEON/CMakeLists.txt index a06813f299..79d2dc39d4 100644 --- a/SingleSource/UnitTests/Vector/NEON/CMakeLists.txt +++ b/SingleSource/UnitTests/Vector/NEON/CMakeLists.txt @@ -1,2 +1,2 @@ -list(APPEND CFLAGS -std=c99) llvm_singlesource(PREFIX "Vector-NEON-") +set_property(TARGET Vector-NEON-simple PROPERTY C_STANDARD 99)