Skip to content

Commit

Permalink
Fix the build error for wasm-standalone app (apache#6862)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonwanghui authored and trevor-m committed Dec 4, 2020
1 parent d1641a3 commit 1e18577
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py
Expand Up @@ -44,7 +44,7 @@ def build_graph_lib(model_file, opt_level):

# Compile the relay mod
mod, params = _get_mod_and_params(model_file)
target = "llvm -target=wasm32-unknown-unknown -mattr=+simd128 --system-lib"
target = "llvm -mtriple=wasm32-unknown-unknown -mattr=+simd128 --system-lib"
with tvm.transform.PassContext(opt_level=opt_level):
graph_json, lib, params = relay.build(mod, target=target, params=params)

Expand All @@ -71,7 +71,7 @@ def build_graph_lib(model_file, opt_level):
"--opt-level",
type=int,
default=0,
help="level of optimization. 0 is unoptimized and 3 is the highest level",
help="level of optimization. 0 is non-optimized and 3 is the highest level",
)
args = parser.parse_args()

Expand Down

0 comments on commit 1e18577

Please sign in to comment.