Skip to content

Commit 468c7fb

Browse files
authored
add extra reference for use of -mpu=native rather than -march=native with LLVM on Arm
1 parent 185702e commit 468c7fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

easybuild/toolchains/compiler/llvm_compilers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ class LLVMCompilers(Compiler):
144144
COMPILER_OPTIMAL_ARCHITECTURE_OPTION = {
145145
**(Compiler.COMPILER_OPTIMAL_ARCHITECTURE_OPTION or {}),
146146
# -mcpu=native is recommended way to specify feature set for aarch64, see:
147-
# https://github.com/easybuilders/easybuild-framework/pull/5139#issuecomment-3961654073
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
148149
(systemtools.AARCH64, systemtools.ARM): '-mcpu=native',
149150
(systemtools.POWER, systemtools.POWER): '-mcpu=native', # no support for march=native on POWER
150151
(systemtools.POWER, systemtools.POWER_LE): '-mcpu=native', # no support for march=native on POWER

0 commit comments

Comments
 (0)