Merge pull request #36214 from akien-mga/vulkan-loader-secure_getenv
Vulkan-Loader: Mark secure_getenv as available on Linux
This commit is contained in:
commit
6d3809b25e
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ if env['builtin_vulkan']:
|
||||||
'FALLBACK_DATA_DIRS=\\"%s\\"' % '/usr/local/share:/usr/share',
|
'FALLBACK_DATA_DIRS=\\"%s\\"' % '/usr/local/share:/usr/share',
|
||||||
'FALLBACK_CONFIG_DIRS=\\"%s\\"' % '/etc/xdg'
|
'FALLBACK_CONFIG_DIRS=\\"%s\\"' % '/etc/xdg'
|
||||||
])
|
])
|
||||||
|
import platform
|
||||||
|
if (platform.system() == "Linux"):
|
||||||
|
# In glibc since 2.17 and musl libc since 1.1.24. Used by loader.c.
|
||||||
|
env_thirdparty.AppendUnique(CPPDEFINES=['HAVE_SECURE_GETENV'])
|
||||||
|
|
||||||
loader_sources = [thirdparty_dir + "/loader/" + file for file in loader_sources]
|
loader_sources = [thirdparty_dir + "/loader/" + file for file in loader_sources]
|
||||||
env_thirdparty.add_source_files(env.drivers_sources, loader_sources)
|
env_thirdparty.add_source_files(env.drivers_sources, loader_sources)
|
||||||
|
|
Loading…
Reference in a new issue