Linux: Work around gold linker bug for 32-bit code (try #2).

This commit is contained in:
Marshall Greenblatt
2017-06-05 22:05:29 +03:00
parent 34a7f3401a
commit 967f7e9c76

View File

@ -1,8 +1,17 @@
diff --git BUILD.gn BUILD.gn diff --git BUILD.gn BUILD.gn
index bfd68e2..1eb7568 100644 index bfd68e2..6557d38 100644
--- BUILD.gn --- BUILD.gn
+++ BUILD.gn +++ BUILD.gn
@@ -88,6 +88,12 @@ config("swiftshader_config") { @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import("//build/config/compiler/compiler.gni")
+
config("swiftshader_config") {
defines = [ "STRICT_CONFORMANCE" ] # Disables OpenGL ES 3.0
@@ -88,6 +90,12 @@ config("swiftshader_config") {
"-Wl,--hash-style=both", "-Wl,--hash-style=both",
"-Wl,--gc-sections", "-Wl,--gc-sections",
] ]