Skip to content

Commit cc26921

Browse files
committed
Add -fsplit-lto-unit flag
The new LLVM update requires '-fsplit-lto-unit' to build ThinLTO. Add the flag unconditionally in test_compiler as a temporary workaround. To be reverted after the cflag is properly set in soong. Test: TreeHugger Change-Id: I5b4dd4a7486c8219473d24a4b92447fb8994db75
1 parent b583800 commit cc26921

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_compiler.py

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
# before we fix those warnings.
3636
DISABLED_WARNINGS = [
3737
'-Wno-error=defaulted-function-deleted',
38+
'-Wno-error=string-plus-int',
39+
'-fsplit-lto-unit',
3840
]
3941

4042

0 commit comments

Comments
 (0)