Skip to content

Commit

Permalink
Merge pull request #404 from Leonard-Reuter/feat/add_ifx_support
Browse files Browse the repository at this point in the history
Add ifx support
  • Loading branch information
tclune authored Apr 17, 2023
2 parents 3285d91 + 0591ca0 commit da2d12f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added IntelLLVM.cmake to support ifx
- Added interface for `@asertEquals` for arrays of strings. Previously only string scalars could be compared.
- Added check in pFUnit preprocessor that raises an exception if the module name and filename do not agree unless `@suite` is used to override default assumptions.
- Added option to set labels to ctests
Expand Down
22 changes: 22 additions & 0 deletions cmake/IntelLLVM.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Compiler specific flags for Intel Fortran compiler

if(WIN32)
set(no_optimize "-Od")
set(check_all "-check:all")
else()
set(no_optimize "-O0")
set(check_all "-check all")
endif()


set(disable_warning_for_long_names "-diag-disable 5462")
set(traceback "-traceback")
set(cpp "-cpp")


set(common_flags "${cpp} ${disable_warning_for_long_names}")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -g ${common_flags} ${traceback} ${no_optimize} ${check_all}")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 ${common_flags}")

add_definitions(-D_INTEL)
add_definitions(-D__ifort_18)

0 comments on commit da2d12f

Please sign in to comment.