fujitsu compiler: added / fixed support for compiler flags (#19967)
Added flags for: - Debug symbols - C++17 standard Fixed the list of flags for generic optimizations
This commit is contained in:
parent
1b7a5e53a6
commit
8f3594564c
@ -34,9 +34,13 @@ class Fj(spack.compiler.Compiler):
|
|||||||
def verbose_flag(self):
|
def verbose_flag(self):
|
||||||
return "-v"
|
return "-v"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def debug_flags(self):
|
||||||
|
return "-g"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def opt_flags(self):
|
def opt_flags(self):
|
||||||
return ['-O', '-O0', '-O1', '-O2', '-O3', '-O4']
|
return ['-O0', '-O1', '-O2', '-O3', '-Ofast']
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def openmp_flag(self):
|
def openmp_flag(self):
|
||||||
@ -54,6 +58,10 @@ def cxx11_flag(self):
|
|||||||
def cxx14_flag(self):
|
def cxx14_flag(self):
|
||||||
return "-std=c++14"
|
return "-std=c++14"
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cxx17_flag(self):
|
||||||
|
return "-std=c++17"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def c99_flag(self):
|
def c99_flag(self):
|
||||||
return "-std=c99"
|
return "-std=c99"
|
||||||
|
@ -471,14 +471,16 @@ def test_fj_flags():
|
|||||||
supported_flag_test("cxx98_flag", "-std=c++98", "fj@4.0.0")
|
supported_flag_test("cxx98_flag", "-std=c++98", "fj@4.0.0")
|
||||||
supported_flag_test("cxx11_flag", "-std=c++11", "fj@4.0.0")
|
supported_flag_test("cxx11_flag", "-std=c++11", "fj@4.0.0")
|
||||||
supported_flag_test("cxx14_flag", "-std=c++14", "fj@4.0.0")
|
supported_flag_test("cxx14_flag", "-std=c++14", "fj@4.0.0")
|
||||||
|
supported_flag_test("cxx17_flag", "-std=c++17", "fj@4.0.0")
|
||||||
supported_flag_test("c99_flag", "-std=c99", "fj@4.0.0")
|
supported_flag_test("c99_flag", "-std=c99", "fj@4.0.0")
|
||||||
supported_flag_test("c11_flag", "-std=c11", "fj@4.0.0")
|
supported_flag_test("c11_flag", "-std=c11", "fj@4.0.0")
|
||||||
supported_flag_test("cc_pic_flag", "-KPIC", "fj@4.0.0")
|
supported_flag_test("cc_pic_flag", "-KPIC", "fj@4.0.0")
|
||||||
supported_flag_test("cxx_pic_flag", "-KPIC", "fj@4.0.0")
|
supported_flag_test("cxx_pic_flag", "-KPIC", "fj@4.0.0")
|
||||||
supported_flag_test("f77_pic_flag", "-KPIC", "fj@4.0.0")
|
supported_flag_test("f77_pic_flag", "-KPIC", "fj@4.0.0")
|
||||||
supported_flag_test("fc_pic_flag", "-KPIC", "fj@4.0.0")
|
supported_flag_test("fc_pic_flag", "-KPIC", "fj@4.0.0")
|
||||||
supported_flag_test("opt_flags", ['-O', '-O0', '-O1', '-O2', '-O3', '-O4'],
|
supported_flag_test("opt_flags", ['-O0', '-O1', '-O2', '-O3', '-Ofast'],
|
||||||
'fj@4.0.0')
|
'fj@4.0.0')
|
||||||
|
supported_flag_test("debug_flags", "-g", "fj@4.0.0")
|
||||||
|
|
||||||
|
|
||||||
def test_gcc_flags():
|
def test_gcc_flags():
|
||||||
|
Loading…
Reference in New Issue
Block a user