The --icf=all flag is not supported on all architectures

This commit is contained in:
Ales Pergl
2018-02-20 18:28:51 +01:00
parent ed0676e167
commit eedb0b778f

View File

@@ -278,7 +278,6 @@
'-Wl,-O1',
'-Wl,--as-needed',
'-Wl,--gc-sections',
'-Wl,--icf=all',
],
}], # OS=="linux"
['OS=="linux" and target_arch in ["ia32", "x64", "arm64"]', {
@@ -290,6 +289,7 @@
'-fuse-ld=gold',
'-Wl,-plugin-opt,O1',
'-Wl,-plugin-opt,-function-sections',
'-Wl,--icf=all',
],
}],
],