diff options
Diffstat (limited to 'arc4_enable-lto-for-gcc.patch')
-rw-r--r-- | arc4_enable-lto-for-gcc.patch | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arc4_enable-lto-for-gcc.patch b/arc4_enable-lto-for-gcc.patch index 9f149e8..982f68a 100644 --- a/arc4_enable-lto-for-gcc.patch +++ b/arc4_enable-lto-for-gcc.patch @@ -4,12 +4,11 @@ # gcc lto likes to put the top level asm in syscall.cc in a different partition # from the function using it which breaks the build. Work around that by # forcing there to be only one partition. --for f in CONFIG['OS_CXXFLAGS']: -- if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang': -- LDFLAGS += ['--param lto-partitions=1'] +-for f in CONFIG["OS_CXXFLAGS"]: +- if f.startswith("-flto") and CONFIG["CC_TYPE"] != "clang": +- LDFLAGS += ["--param lto-partitions=1"] +if CONFIG['CC_TYPE'] != 'clang': + LDFLAGS += ['--param', 'lto-partitions=1'] - - DEFINES['NS_NO_XPCOM'] = True - DisableStlWrapping() + DEFINES["NS_NO_XPCOM"] = True + DisableStlWrapping() |