[flang-commits] [PATCH] D154373: [llvm-test-suite][Fortran/gfortran] Refactor build system

Tarun Prabhu via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 3 10:27:25 PDT 2023


tarunprabhu created this revision.
tarunprabhu added reviewers: kiranchandramohan, luporl.
tarunprabhu added a project: Flang.
Herald added subscribers: ormris, jdoerfert, steven_wu, hiraditya.
Herald added a reviewer: sscalpone.
Herald added a project: All.
tarunprabhu requested review of this revision.

This is #2 in the effort to enable the "compile" tests in the gfortran test suite.

This refactors the build system by removing some redundant code from the `regression` and `torture` directories and consolidating most of the build system logic into `gfortran/CMakeLists.txt`. This simplifies the build scripts in the directories containing the actual tests which ought to make them easier to maintain, especially if they are updated to pull in any new tests added to upstream gfortran.

There is also some cleanup including more consistent capitalization of variable names and more inline comments describing some of the peculiarities of the approach.


Repository:
  rT test-suite

https://reviews.llvm.org/D154373

Files:
  Fortran/gfortran/CMakeLists.txt
  Fortran/gfortran/compile-save-diags.cmake
  Fortran/gfortran/regression/CMakeLists.txt
  Fortran/gfortran/regression/analyzer/CMakeLists.txt
  Fortran/gfortran/regression/asan/CMakeLists.txt
  Fortran/gfortran/regression/c-interop/CMakeLists.txt
  Fortran/gfortran/regression/coarray/CMakeLists.txt
  Fortran/gfortran/regression/debug/CMakeLists.txt
  Fortran/gfortran/regression/g77/CMakeLists.txt
  Fortran/gfortran/regression/goacc-gomp/CMakeLists.txt
  Fortran/gfortran/regression/goacc/CMakeLists.txt
  Fortran/gfortran/regression/gomp/CMakeLists.txt
  Fortran/gfortran/regression/gomp/appendix-a/CMakeLists.txt
  Fortran/gfortran/regression/graphite/CMakeLists.txt
  Fortran/gfortran/regression/ieee/CMakeLists.txt
  Fortran/gfortran/regression/lto/CMakeLists.txt
  Fortran/gfortran/regression/ubsan/CMakeLists.txt
  Fortran/gfortran/regression/vect/CMakeLists.txt
  Fortran/gfortran/torture/CMakeLists.txt
  Fortran/gfortran/torture/compile/CMakeLists.txt
  Fortran/gfortran/torture/execute/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154373.536825.patch
Type: text/x-patch
Size: 47366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230703/bbb41b66/attachment-0001.bin>


More information about the flang-commits mailing list