Skip to content

Commit 3494e22

Browse files
Build with -sINLINING_LIMIT on wasm. (flutter#704)
Build with `-sINLINING_LIMIT` on wasm.
1 parent 43031aa commit 3494e22

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

build/config/BUILDCONFIG.gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,10 @@ if (is_win) {
445445
]
446446
}
447447

448+
if (is_wasm) {
449+
_native_compiler_configs += [ "//build/config/wasm:limit_inlining" ]
450+
}
451+
448452
# Executable defaults.
449453
_executable_configs =
450454
_native_compiler_configs + [ "//build/config:default_libs" ]

build/config/wasm/BUILD.gn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
config("limit_inlining") {
6+
cflags = [ "-sINLINING_LIMIT=1" ]
7+
ldflags = [ "-sINLINING_LIMIT=1" ]
8+
}

0 commit comments

Comments
 (0)