Skip to content

Commit 242f442

Browse files
Fix SwiftShader build failures: restore -Wno-newline-eof for third-party code and wire extra_cflags_cc through Termux compiler config (#4)
* Initial plan * Fix SwiftShader build: restore -Wno-newline-eof in no_chromium_code and apply extra_cflags_cc in termux:compiler config Co-authored-by: GeneralKaos666 <161671171+GeneralKaos666@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: GeneralKaos666 <161671171+GeneralKaos666@users.noreply.github.com>
1 parent 3d15f1a commit 242f442

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

patches/engine.patch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ index 50f1b60eab1..cd1d7bcca5f 100644
148148
cflags += [ "-Wno-deprecated-non-prototype" ]
149149
}
150150

151-
- if (is_clang) {
152-
+ if (is_clang && !is_termux) {
151+
if (is_clang) {
153152
cflags += [
154153
"-Wno-newline-eof",
155154
"-Wno-typedef-redefinition",
@@ -318,6 +317,9 @@ index 0000000..8208b13
318317
+ ldflags += [ "--target=x86_64-linux-androideabi${termux_api_level}" ]
319318
+ }
320319
+ asmflags = cflags
320+
+ cflags += extra_cflags
321+
+ cflags_cc += extra_cflags_cc
322+
+ ldflags += extra_ldflags
321323
+ } else {
322324
+ configs = ["//build/config/compiler:compiler"]
323325
+ }

0 commit comments

Comments
 (0)