Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Disallow C-style escaping for IBM XL compiler #764

Merged
merged 1 commit into from
Sep 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/fpm_compiler.f90
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ module fpm_compiler
flag_pgi_check = " -Mbounds -Mchkptr -Mchkstk", &
flag_pgi_warn = " -Minform=inform"

character(*), parameter :: &
flag_ibmxl_backslash = " -qnoescape"

character(*), parameter :: &
flag_intel_backtrace = " -traceback", &
flag_intel_warn = " -warn all", &
Expand Down Expand Up @@ -235,6 +238,10 @@ subroutine get_release_compile_flags(id, flags)
flags = &
flag_pgi_backslash

case(id_ibmxl)
flags = &
flag_ibmxl_backslash

case(id_intel_classic_nix)
flags = &
flag_intel_fp//&
Expand Down Expand Up @@ -332,6 +339,9 @@ subroutine get_debug_compile_flags(id, flags)
flag_pgi_backslash//&
flag_pgi_check//&
flag_pgi_traceback
case(id_ibmxl)
flags = &
flag_ibmxl_backslash
case(id_intel_classic_nix)
flags = &
flag_intel_warn//&
Expand Down