Skip to content

Commit

Permalink
CMake: Add support for pasm2asm on NASM source files
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Nakamura <devinn@ca.ibm.com>
  • Loading branch information
dnakamura committed Oct 9, 2018
1 parent c5a3dc5 commit c889003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/modules/OmrCompilerSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ function(pasm2asm_files out_var compiler)
set(result "")
foreach(in_f ${ARGN})
get_filename_component(extension ${in_f} EXT)
if (extension STREQUAL ".pasm") # Requires preprocessing
if (extension MATCHES "\\.pn?asm") # Requires preprocessing
get_filename_component(absolute_in_f ${in_f} ABSOLUTE)

string(REGEX REPLACE ".pasm" ".asm" out_f ${in_f})
string(REGEX REPLACE "\\.p(n?asm)" ".\\1" out_f ${in_f})

set(out_f "${CMAKE_CURRENT_BINARY_DIR}/${out_f}")
get_filename_component(out_dir ${out_f} DIRECTORY)
Expand Down

0 comments on commit c889003

Please sign in to comment.