Skip to content

Commit

Permalink
Merge pull request easybuilders#3325 from bedroge/clang_riscv
Browse files Browse the repository at this point in the history
add RISC-V support to Clang easyblock
  • Loading branch information
SebastianAchilles authored May 9, 2024
2 parents a0b1cd7 + 3e29db2 commit 7191ef8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions easybuild/easyblocks/c/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,21 @@
from easybuild.tools.filetools import apply_regex_substitutions, change_dir, mkdir, symlink, which
from easybuild.tools.modules import get_software_root
from easybuild.tools.run import run_cmd
from easybuild.tools.systemtools import AARCH32, AARCH64, POWER, X86_64
from easybuild.tools.systemtools import AARCH32, AARCH64, POWER, RISCV64, X86_64
from easybuild.tools.systemtools import get_cpu_architecture, get_os_name, get_os_version, get_shared_lib_ext
from easybuild.tools.environment import setvar

# List of all possible build targets for Clang
CLANG_TARGETS = ["all", "AArch64", "AMDGPU", "ARM", "CppBackend", "Hexagon", "Mips",
"MBlaze", "MSP430", "NVPTX", "PowerPC", "R600", "Sparc",
"MBlaze", "MSP430", "NVPTX", "PowerPC", "R600", "RISCV", "Sparc",
"SystemZ", "X86", "XCore"]

# Mapping of EasyBuild CPU architecture names to list of default LLVM target names
DEFAULT_TARGETS_MAP = {
AARCH32: ['ARM'],
AARCH64: ['AArch64'],
POWER: ['PowerPC'],
RISCV64: ['RISCV'],
X86_64: ['X86'],
}

Expand Down

0 comments on commit 7191ef8

Please sign in to comment.