summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort-karatsu <49965247+t-karatsu@users.noreply.github.com>2019-07-13 00:34:08 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-12 10:34:08 -0500
commitadbb9e2d8eab3d3aff66151059b5727dab5ffb71 (patch)
treec1c3582b42518ed58706711027d88a0ff13c3c9c
parente8e030a518f3894d5be228401110b9c6cc5ff76e (diff)
downloadspack-adbb9e2d8eab3d3aff66151059b5727dab5ffb71.tar.gz
spack-adbb9e2d8eab3d3aff66151059b5727dab5ffb71.tar.bz2
spack-adbb9e2d8eab3d3aff66151059b5727dab5ffb71.tar.xz
spack-adbb9e2d8eab3d3aff66151059b5727dab5ffb71.zip
Fix pic_flag and test contents about Fujitsu compiler. (#11996)
-rw-r--r--lib/spack/spack/compilers/fj.py2
-rw-r--r--lib/spack/spack/test/compilers.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/spack/spack/compilers/fj.py b/lib/spack/spack/compilers/fj.py
index e37b3898bd..3f378746b7 100644
--- a/lib/spack/spack/compilers/fj.py
+++ b/lib/spack/spack/compilers/fj.py
@@ -46,4 +46,4 @@ class Fj(spack.compiler.Compiler):
@property
def pic_flag(self):
- return "-fPIC"
+ return "-KPIC"
diff --git a/lib/spack/spack/test/compilers.py b/lib/spack/spack/test/compilers.py
index 0a81dd39d9..1b66b692e0 100644
--- a/lib/spack/spack/test/compilers.py
+++ b/lib/spack/spack/test/compilers.py
@@ -274,11 +274,11 @@ def test_xl_r_flags():
def test_fj_flags():
- supported_flag_test("openmp_flag", "-Kopenmp", "fj@1.2.0")
- supported_flag_test("cxx98_flag", "-std=c++98", "fj@1.2.0")
- supported_flag_test("cxx11_flag", "-std=c++11", "fj@1.2.0")
- supported_flag_test("cxx14_flag", "-std=c++14", "fj@1.2.0")
- supported_flag_test("pic_flag", "-fPIC", "fj@1.2.0")
+ supported_flag_test("openmp_flag", "-Kopenmp", "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("cxx14_flag", "-std=c++14", "fj@4.0.0")
+ supported_flag_test("pic_flag", "-KPIC", "fj@4.0.0")
@pytest.mark.regression('10191')