Add patch for swiftshader ICF bug
This commit is contained in:
Родитель
c345f7e102
Коммит
e557f5fc07
|
@ -0,0 +1,26 @@
|
|||
diff --git a/BUILD.gn b/BUILD.gn
|
||||
index bfd68e2b..6557d38a 100644
|
||||
--- a/BUILD.gn
|
||||
+++ b/BUILD.gn
|
||||
@@ -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,--gc-sections",
|
||||
]
|
||||
+ # A bug in the gold linker prevents using ICF on 32-bit (crbug.com/729532)
|
||||
+ if (use_gold && target_cpu == "x86") {
|
||||
+ ldflags += [
|
||||
+ "-Wl,--icf=none",
|
||||
+ ]
|
||||
+ }
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче