Skip to content

Commit

Permalink
RISC-V: unify .spp file compilation with AArch64
Browse files Browse the repository at this point in the history
This commit unifies processing of `.spp` files (C pre-processed
assembly source) for both architectures.

Signed-off-by: Jan Vrany <jan.vrany@fit.cvut.cz>
  • Loading branch information
janvrany committed Dec 4, 2020
1 parent 948862b commit 2327ba5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/modules/OmrCompilerSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ function(ppc_spp2s_files out_var compiler)
set(${out_var} "${result}" PARENT_SCOPE)
endfunction()

function(aarch64_spp_files out_var compiler)
# Aarch64 .spp files are equivalent to standard .S files
function(common_spp_files out_var compiler)
# AArch64 and RISC-V .spp files are equivalent to standard .S files
# ie. assembler + c pre-processor
foreach(in_f ${ARGN})
get_filename_component(extension ${in_f} EXT)
Expand All @@ -155,8 +155,8 @@ function(omr_inject_object_modification_targets result compiler_name)
# Handle SPP files
if(OMR_ARCH_POWER)
ppc_spp2s_files(arg ${compiler_name} ${arg})
elseif(OMR_ARCH_AARCH64)
aarch64_spp_files(arg ${compiler_name} ${arg})
elseif(OMR_ARCH_AARCH64 OR OMR_ARCH_RISCV)
common_spp_files(arg ${compiler_name} ${arg})
endif()


Expand Down

0 comments on commit 2327ba5

Please sign in to comment.