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,10 +73,12 @@ config("swiftshader_config") {
]
}
ldflags = [
"-Wl,--hash-style=both",
"-Wl,--gc-sections",
]
if (is_linux) {
ldflags = [
"-Wl,--hash-style=both",
"-Wl,--gc-sections",
]
}
}
}
......
......@@ -25,10 +25,15 @@ config("swiftshader_libEGL_private_config") {
} else {
cflags = [
"-DLOG_TAG=\"swiftshader_libEGL\"",
"-DEGLAPI=__attribute__((visibility(\"protected\")))",
"-DEGL_EGLEXT_PROTOTYPES",
"-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") {
"-D__STDC_CONSTANT_MACROS",
"-D__STDC_LIMIT_MACROS",
"-DGL_API=",
"-DGL_APICALL=__attribute__((visibility(\"protected\")))",
"-DGL_GLEXT_PROTOTYPES",
"-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