Fujitsu compiler: Add flags for c11/c99 (#12622)

* Fujitsu compiler: Add flags for c11/c99

* Add unit tests about supported flags
This commit is contained in:
t-karatsu 2019-08-31 01:25:34 +09:00 committed by Adam J. Stewart
parent 4483473483
commit 0c421589e6
2 changed files with 10 additions and 0 deletions

View file

@ -44,6 +44,14 @@ def cxx11_flag(self):
def cxx14_flag(self):
return "-std=c++14"
@property
def c99_flag(self):
return "-std=c99"
@property
def c11_flag(self):
return "-std=c11"
@property
def pic_flag(self):
return "-KPIC"

View file

@ -303,6 +303,8 @@ def test_fj_flags():
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("c99_flag", "-std=c99", "fj@4.0.0")
supported_flag_test("c11_flag", "-std=c11", "fj@4.0.0")
supported_flag_test("pic_flag", "-KPIC", "fj@4.0.0")