Commit 110f60e9 by Alexis Hetu Committed by Alexis Hétu

Build fix for MacOS and Fuchsia

There was linux specific code in Vulkan's BUILD.gn file. Change-Id: I22b8cd0b97bd6acfb545e582c6e1dc784f00b2cb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/32388 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 79d4ac9a
......@@ -17,10 +17,14 @@ import("../swiftshader.gni")
# Need a separate config to ensure the warnings are added to the end.
config("swiftshader_libvulkan_private_config") {
if (is_linux) {
defines = [
"VK_USE_PLATFORM_XLIB_KHR",
"VK_EXPORT=__attribute__((visibility(\"default\")))",
]
} else {
defines = [ "VK_EXPORT=" ]
}
cflags = [
"-Wno-unused-private-field",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment