Skip to content

Commit acab67b

Browse files
authored
[M68k][compiler-rt] Allow compiler-rt builtins to be built for M68k (#169256)
I've tested this locally, and the builtins build proceeds without a hitch for m68k-none-none. This is part of a larger effort to establish a working m68k baremetal toolchain.
1 parent c33e50b commit acab67b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

compiler-rt/cmake/builtin-config-ix.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ set(SPARCV9 sparcv9)
9898
set(WASM32 wasm32)
9999
set(WASM64 wasm64)
100100
set(VE ve)
101+
set(M68K m68k)
101102

102103
if(APPLE)
103104
set(ARM64 arm64 arm64e)
@@ -109,7 +110,7 @@ set(ALL_BUILTIN_SUPPORTED_ARCH
109110
${X86} ${X86_64} ${AMDGPU} ${ARM32} ${ARM64} ${AVR}
110111
${HEXAGON} ${MIPS32} ${MIPS64} ${NVPTX} ${PPC32} ${PPC64}
111112
${RISCV32} ${RISCV64} ${S390X} ${SPARC} ${SPARCV9}
112-
${WASM32} ${WASM64} ${VE} ${LOONGARCH64})
113+
${WASM32} ${WASM64} ${VE} ${LOONGARCH64} ${M68K})
113114

114115
include(CompilerRTUtils)
115116
include(CompilerRTDarwinUtils)

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,8 @@ set(ve_SOURCES
881881
${GENERIC_TF_SOURCES}
882882
${GENERIC_SOURCES})
883883

884+
set(m68k_SOURCES ${GENERIC_SOURCES})
885+
884886
add_custom_target(builtins)
885887
set_target_properties(builtins PROPERTIES FOLDER "Compiler-RT/Metatargets")
886888

0 commit comments

Comments
 (0)