mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-23 07:10:23 +00:00
loader: Update assembly file names to specify their target architecture
This commit is contained in:
parent
538b2676ea
commit
9e6011fd96
@ -224,9 +224,9 @@ else(UNIX AND NOT APPLE) # i.e.: Linux
|
|||||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS HAVE_CET_H)
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS HAVE_CET_H)
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||||
try_compile(ASSEMBLER_WORKS ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/asm_test.S)
|
try_compile(ASSEMBLER_WORKS ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/asm_test_x86.S)
|
||||||
if(ASSEMBLER_WORKS)
|
if(ASSEMBLER_WORKS)
|
||||||
set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} unknown_ext_chain_gas.S)
|
set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} unknown_ext_chain_gas_x86.S)
|
||||||
add_executable(asm_offset asm_offset.c)
|
add_executable(asm_offset asm_offset.c)
|
||||||
target_link_libraries(asm_offset Vulkan::Headers)
|
target_link_libraries(asm_offset Vulkan::Headers)
|
||||||
add_custom_command(OUTPUT gen_defines.asm DEPENDS asm_offset COMMAND asm_offset GAS)
|
add_custom_command(OUTPUT gen_defines.asm DEPENDS asm_offset COMMAND asm_offset GAS)
|
||||||
|
Loading…
Reference in New Issue
Block a user