Skip to content

Commit 634be5f

Browse files
authored
Use -nostdinc++ on Android since those headers need to be picked up from the NDK. (flutter#136)
1 parent cc6ecd0 commit 634be5f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/config/compiler/BUILD.gn

+6
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,12 @@ config("compiler") {
394394
# Android-specific flags setup.
395395
# -----------------------------
396396
if (is_android) {
397+
# Use stdinc++ from the NDK.
398+
cflags += [
399+
"-nostdinc++"
400+
]
401+
402+
# Common Android flags
397403
cflags += [
398404
"-ffunction-sections",
399405
"-funwind-tables",

0 commit comments

Comments
 (0)