Fix elpa flags (missing optimization) (#41252)
Setting CFLAGS/FCFLAGS overrides the default optimization flags. This commit brings them back.
This commit is contained in:
		| @@ -132,16 +132,7 @@ def configure_args(self): | |||||||
|             options.append("--enable-generic") |             options.append("--enable-generic") | ||||||
| 
 | 
 | ||||||
|         if self.compiler.name == "gcc": |         if self.compiler.name == "gcc": | ||||||
|             gcc_options = [] |             options.extend(["CFLAGS=-O3", "FCFLAGS=-O3 -ffree-line-length-none"]) | ||||||
|             gfortran_options = ["-ffree-line-length-none"] |  | ||||||
| 
 |  | ||||||
|             space_separator = " " |  | ||||||
|             options.extend( |  | ||||||
|                 [ |  | ||||||
|                     "CFLAGS=" + space_separator.join(gcc_options), |  | ||||||
|                     "FCFLAGS=" + space_separator.join(gfortran_options), |  | ||||||
|                 ] |  | ||||||
|             ) |  | ||||||
| 
 | 
 | ||||||
|         if "%aocc" in spec: |         if "%aocc" in spec: | ||||||
|             options.extend(["FCFLAGS=-O3", "CFLAGS=-O3"]) |             options.extend(["FCFLAGS=-O3", "CFLAGS=-O3"]) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Raffaele Solcà
					Raffaele Solcà