diff options
author | Johannes M Dieterich <jmd@FreeBSD.org> | 2018-09-06 20:11:06 +0000 |
---|---|---|
committer | Johannes M Dieterich <jmd@FreeBSD.org> | 2018-09-06 20:11:06 +0000 |
commit | 443e836030631cceb673d40d2e6c0469a1c8e6ad (patch) | |
tree | 4217c2e3763aa77b472700fe22638d586c208751 /devel/flang/files/patch-runtime_flang_CMakeLists.txt | |
parent | new port: math/libpgmath (diff) |
devel/flang[-clang]: update to later snapshots
This introduces flang-driver, a clang6-derived driver / companion compiler, and
uses math/libpgmath as the math library backend. Notably, the latter currently
limits us to 12-CURRENT.
Patches are a combination of carry-over and adapted OpenBSD ones.
While there, pet portlint.
Reviewed by: zeising (mentor), mat
Approved by: zeising (mentor)
Obtained from: Brian Callahan (bcallah@openbsd.org) with adaptations
Differential Revision: https://reviews.freebsd.org/D17036
Diffstat (limited to 'devel/flang/files/patch-runtime_flang_CMakeLists.txt')
-rw-r--r-- | devel/flang/files/patch-runtime_flang_CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/flang/files/patch-runtime_flang_CMakeLists.txt b/devel/flang/files/patch-runtime_flang_CMakeLists.txt new file mode 100644 index 000000000000..d015c490ef53 --- /dev/null +++ b/devel/flang/files/patch-runtime_flang_CMakeLists.txt @@ -0,0 +1,20 @@ +--- runtime/flang/CMakeLists.txt.orig 2018-09-04 22:33:13 UTC ++++ runtime/flang/CMakeLists.txt +@@ -420,7 +420,7 @@ set(I8_FILES_DIR I8_sources) + # Fortran files with macros as module names need to be preprocessed. + add_custom_command( + OUTPUT "${I8_FILES_DIR}/ieee_arithmetic.F95" +- COMMAND "${CMAKE_C_COMPILER}" -E ++ COMMAND "${CMAKE_C_COMPILER}" -E -x c + "${CMAKE_CURRENT_SOURCE_DIR}/ieee_arithmetic.F95" -DDESC_I8 + > "${I8_FILES_DIR}/ieee_arithmetic.F95" + COMMENT "Preprocessing ieee_arithmetic.F95" +@@ -429,7 +429,7 @@ add_custom_command( + + add_custom_command( + OUTPUT "${I8_FILES_DIR}/ieee_exceptions.F95" +- COMMAND "${CMAKE_C_COMPILER}" -E ++ COMMAND "${CMAKE_C_COMPILER}" -E -x c + "${CMAKE_CURRENT_SOURCE_DIR}/ieee_exceptions.F95" -DDESC_I8 + > "${I8_FILES_DIR}/ieee_exceptions.F95" + COMMENT "Preprocessing ieee_exceptions.F95" |