From c992e847b74905fbe42912a3b58eae6770adb80e Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Wed, 31 Oct 2018 16:48:53 +0100 Subject: [PATCH] Don't inline BLAS/CLAPACK --- CLAPACK/Makefile.envs | 4 ++-- pyodide_build/pywasmcross.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CLAPACK/Makefile.envs b/CLAPACK/Makefile.envs index 11c1b0b75..267ba5418 100644 --- a/CLAPACK/Makefile.envs +++ b/CLAPACK/Makefile.envs @@ -1,2 +1,2 @@ -CFLAGS_OPT=-O2 -LDFLAGS_OPT=-O2 +CFLAGS_OPT=-O2 -s INLINING_LIMIT=5 +LDFLAGS_OPT=-O2 -s INLINING_LIMIT=5 diff --git a/pyodide_build/pywasmcross.py b/pyodide_build/pywasmcross.py index d2fd88614..d831398a4 100755 --- a/pyodide_build/pywasmcross.py +++ b/pyodide_build/pywasmcross.py @@ -287,6 +287,8 @@ def handle_command(line, args, dryrun=False): for lib_name in link_libs: arg = os.path.join(lapack_dir, f"{lib_name}") new_args.append(arg) + + new_args.extend(['-s', 'INLINING_LIMIT=5']) continue new_args.append(arg)