X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=meson.build;h=5e250470ed1ce14f899e0d19171ce707f6791bb0;hb=18a6e426f3aa546c8eb74d40f66b265044bec683;hp=0d534b9b4a9877e21545fa9cb9bafc479f36c9bc;hpb=3824c8e7cda97c3bf856983ea5fb6d696c75fb24;p=mesa.git diff --git a/meson.build b/meson.build index 0d534b9b4a9..5e250470ed1 100644 --- a/meson.build +++ b/meson.build @@ -1070,6 +1070,13 @@ pre_args += '-DHAVE_ZLIB' dep_thread = dependency('threads') if dep_thread.found() and host_machine.system() != 'windows' pre_args += '-DHAVE_PTHREAD' + if cc.has_function( + 'pthread_setaffinity_np', + dependencies : dep_thread, + prefix : '#include ', + args : '-D_GNU_SOURCE') + pre_args += '-DHAVE_PTHREAD_SETAFFINITY' + endif endif if with_amd_vk or with_gallium_radeonsi or with_gallium_r600 or with_gallium_opencl dep_elf = dependency('libelf', required : false) @@ -1181,6 +1188,8 @@ else _llvm_version = '>= 3.3.0' endif +_shared_llvm = get_option('shared-llvm') + _llvm = get_option('llvm') if _llvm == 'auto' dep_llvm = dependency( @@ -1189,6 +1198,7 @@ if _llvm == 'auto' modules : llvm_modules, optional_modules : llvm_optional_modules, required : with_amd_vk or with_gallium_radeonsi or with_gallium_swr or with_gallium_opencl, + static : not _shared_llvm ) with_llvm = dep_llvm.found() elif _llvm == 'true' @@ -1197,6 +1207,7 @@ elif _llvm == 'true' version : _llvm_version, modules : llvm_modules, optional_modules : llvm_optional_modules, + static : not _shared_llvm, ) with_llvm = true else