Update CMakeLists.txt (#140)

Changed file type of src/jit_compiler_a64_static.S to 'ASM'
This commit is contained in:
Vladimir (Alkenso) 2019-10-23 17:47:30 +03:00 committed by tevador
parent a5d16890c2
commit 941dfed647

View file

@ -100,6 +100,7 @@ if (ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "
src/jit_compiler_x86.cpp) src/jit_compiler_x86.cpp)
# cheat because cmake and ccache hate each other # cheat because cmake and ccache hate each other
set_property(SOURCE src/jit_compiler_x86_static.S PROPERTY LANGUAGE C) set_property(SOURCE src/jit_compiler_x86_static.S PROPERTY LANGUAGE C)
set_property(SOURCE src/jit_compiler_x86_static.S PROPERTY XCODE_EXPLICIT_FILE_TYPE sourcecode.asm)
if(ARCH STREQUAL "native") if(ARCH STREQUAL "native")
add_flag("-march=native") add_flag("-march=native")
@ -132,6 +133,7 @@ if (ARM_ID STREQUAL "aarch64" OR ARM_ID STREQUAL "arm64" OR ARM_ID STREQUAL "arm
src/jit_compiler_a64.cpp) src/jit_compiler_a64.cpp)
# cheat because cmake and ccache hate each other # cheat because cmake and ccache hate each other
set_property(SOURCE src/jit_compiler_a64_static.S PROPERTY LANGUAGE C) set_property(SOURCE src/jit_compiler_a64_static.S PROPERTY LANGUAGE C)
set_property(SOURCE src/jit_compiler_x86_static.S PROPERTY XCODE_EXPLICIT_FILE_TYPE sourcecode.asm)
# not sure if this check is needed # not sure if this check is needed
include(CheckIncludeFile) include(CheckIncludeFile)