File tree Expand file tree Collapse file tree
easybuild/toolchains/compiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,10 @@ class LLVMCompilers(Compiler):
143143 # used when 'optarch' toolchain option is enabled (and --optarch is not specified)
144144 COMPILER_OPTIMAL_ARCHITECTURE_OPTION = {
145145 ** (Compiler .COMPILER_OPTIMAL_ARCHITECTURE_OPTION or {}),
146- (systemtools .AARCH64 , systemtools .ARM ): '-march=native' ,
146+ # -mcpu=native is recommended way to specify feature set for aarch64, see:
147+ # https://github.com/easybuilders/easybuild-framework/pull/5139#issuecomment-3961654073 and
148+ # https://developer.arm.com/community/arm-community-blogs/b/tools-software-ides-blog/posts/compiler-flags-across-architectures-march-mtune-and-mcpu
149+ (systemtools .AARCH64 , systemtools .ARM ): '-mcpu=native' ,
147150 (systemtools .POWER , systemtools .POWER ): '-mcpu=native' , # no support for march=native on POWER
148151 (systemtools .POWER , systemtools .POWER_LE ): '-mcpu=native' , # no support for march=native on POWER
149152 (systemtools .X86_64 , systemtools .AMD ): '-march=native' ,
You can’t perform that action at this time.
0 commit comments