diff --git a/test/common.py b/test/common.py index 3e591422a3af4..19389eff088ec 100644 --- a/test/common.py +++ b/test/common.py @@ -842,7 +842,9 @@ def add_on_exit(self, code): # libraries, for example def get_cflags(self, main_file=False, compile_only=False, asm_only=False): def is_ldflag(f): - return f.startswith('-l') or any(f.startswith(s) for s in ['-sEXPORT_ES6', '-sGL_TESTING', '-sPROXY_TO_PTHREAD', '-sENVIRONMENT=', '--pre-js=', '--post-js=', '-sPTHREAD_POOL_SIZE=']) + return f.startswith(('-l', '-sEXPORT_ES6', '-sGL_TESTING', '-sPROXY_TO_PTHREAD', + '-sENVIRONMENT=', '--pre-js=', '--post-js=', '-sPTHREAD_POOL_SIZE=', + '--profiling-funcs')) args = self.serialize_settings(compile_only or asm_only) + self.cflags if asm_only: