Commit b1031c89 by Alexis Hetu Committed by Alexis Hétu

MacOS build fix

Fixed MacOS build after the recent Linux fix caused an issue on MacOS. Removed a few flags and changed visibility to fix it. Change-Id: Ic9d08d8ec0ccf8a2002f2787c3ec79861bb59139 Reviewed-on: https://swiftshader-review.googlesource.com/8589Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent d294def5
...@@ -73,11 +73,13 @@ config("swiftshader_config") { ...@@ -73,11 +73,13 @@ config("swiftshader_config") {
] ]
} }
if (is_linux) {
ldflags = [ ldflags = [
"-Wl,--hash-style=both", "-Wl,--hash-style=both",
"-Wl,--gc-sections", "-Wl,--gc-sections",
] ]
} }
}
} }
group("swiftshader") { group("swiftshader") {
......
...@@ -25,10 +25,15 @@ config("swiftshader_libEGL_private_config") { ...@@ -25,10 +25,15 @@ config("swiftshader_libEGL_private_config") {
} else { } else {
cflags = [ cflags = [
"-DLOG_TAG=\"swiftshader_libEGL\"", "-DLOG_TAG=\"swiftshader_libEGL\"",
"-DEGLAPI=__attribute__((visibility(\"protected\")))",
"-DEGL_EGLEXT_PROTOTYPES", "-DEGL_EGLEXT_PROTOTYPES",
"-Wno-sign-compare", "-Wno-sign-compare",
] ]
if (is_linux) {
cflags += [ "-DGL_APICALL=__attribute__((visibility(\"protected\")))" ]
} else {
cflags += [ "-DGL_APICALL=__attribute__((visibility(\"default\")))" ]
}
} }
} }
......
...@@ -36,10 +36,15 @@ config("swiftshader_libGLESv2_private_config") { ...@@ -36,10 +36,15 @@ config("swiftshader_libGLESv2_private_config") {
"-D__STDC_CONSTANT_MACROS", "-D__STDC_CONSTANT_MACROS",
"-D__STDC_LIMIT_MACROS", "-D__STDC_LIMIT_MACROS",
"-DGL_API=", "-DGL_API=",
"-DGL_APICALL=__attribute__((visibility(\"protected\")))",
"-DGL_GLEXT_PROTOTYPES", "-DGL_GLEXT_PROTOTYPES",
"-Wno-sign-compare", "-Wno-sign-compare",
] ]
if (is_linux) {
cflags += [ "-DGL_APICALL=__attribute__((visibility(\"protected\")))" ]
} else {
cflags += [ "-DGL_APICALL=__attribute__((visibility(\"default\")))" ]
}
} }
} }
......
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