From a735dc027d2288f7a2524aef157acd7e6088f66a Mon Sep 17 00:00:00 2001 From: Toyohisa Kameyama Date: Tue, 30 Aug 2022 17:26:15 +0900 Subject: [PATCH] oprnmx: fix to build with Fujitsu compiler. (#32389) --- var/spack/repos/builtin/packages/openmx/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/openmx/package.py b/var/spack/repos/builtin/packages/openmx/package.py index 05d16d36fe..ddcd7e4e03 100644 --- a/var/spack/repos/builtin/packages/openmx/package.py +++ b/var/spack/repos/builtin/packages/openmx/package.py @@ -79,7 +79,7 @@ def common_arguments(self): if "%fj" in spec: common_option.append("-Dkcomp -Kfast") cc_option.append("-Dnosse -Nclang") - fc_option.append(self.compiler.openmp_flag) + fc_option.extend([self.compiler.openmp_flag, "-Ccpp"]) else: common_option.append("-O3") if "%gcc" in spec: