endif
# Android uses emutls for versions <= P/28. For USE_ELF_TLS we need ELF TLS.
-if host_machine.system() != 'windows' and (not with_platform_android or get_option('platform-sdk-version') >= 29)
+if not ['windows', 'freebsd'].contains(host_machine.system()) and (not with_platform_android or get_option('platform-sdk-version') >= 29)
pre_args += '-DUSE_ELF_TLS'
endif
endif
_opencl = get_option('gallium-opencl')
-clover_cpp_std = []
if _opencl != 'disabled'
if not with_gallium
error('OpenCL Clover implementation requires at least one gallium driver.')
dep_spirv_tools = null_dep
dep_llvmspirvlib = null_dep
endif
-
- if host_machine.cpu_family().startswith('ppc') and cpp.compiles('''
- #if !defined(__VEC__) || !defined(__ALTIVEC__)
- #error "AltiVec not enabled"
- #endif''',
- name : 'Altivec')
- clover_cpp_std += ['cpp_std=gnu++11']
- endif
else
dep_clc = null_dep
dep_spirv_tools = null_dep
with_shader_cache = true
endif
endif
-if with_amd_vk and not with_shader_cache
- error('Radv requires shader cache support')
-endif
# Check for GCC style builtins
foreach b : ['bswap32', 'bswap64', 'clz', 'clzll', 'ctz', 'expect', 'ffs',
'-Werror=empty-body',
'-Werror=incompatible-pointer-types',
'-Werror=int-conversion',
+ '-Wimplicit-fallthrough',
'-Wno-missing-field-initializers',
'-Wno-format-truncation',
'-fno-math-errno',