[Build/macOS] Exclude empty translation units and Vulkan/SPIR-V targets
This commit is contained in:
@@ -5,7 +5,7 @@ include(CMakeParseArguments)
|
||||
|
||||
# Platform suffix lists for file filtering
|
||||
set(XE_PLATFORM_SUFFIXES
|
||||
_win _linux _posix _gnulinux _x11 _gtk _android _mac _amd64 _arm64
|
||||
_win _linux _posix _gnulinux _x11 _gtk _android _mac _amd64 _x64 _arm64
|
||||
)
|
||||
|
||||
# xe_platform_sources(target base_path [RECURSIVE])
|
||||
@@ -81,7 +81,8 @@ function(xe_platform_sources target base_path)
|
||||
|
||||
# Add back architecture-specific files
|
||||
if(XE_TARGET_X86_64)
|
||||
file(${glob_mode} _arch_sources "${base_path}/*_amd64.h" "${base_path}/*_amd64.cc")
|
||||
file(${glob_mode} _arch_sources "${base_path}/*_amd64.h" "${base_path}/*_amd64.cc"
|
||||
"${base_path}/*_x64.h" "${base_path}/*_x64.cc")
|
||||
elseif(XE_TARGET_AARCH64)
|
||||
file(${glob_mode} _arch_sources "${base_path}/*_arm64.h" "${base_path}/*_arm64.cc")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user