@@ -391,6 +391,7 @@ def get_clang_flags(user_args):
391391 # Bulk memory may be enabled via threads or directly via -s.
392392 if not settings .BULK_MEMORY :
393393 flags .append ('-mno-bulk-memory' )
394+ flags .append ('-mno-bulk-memory-opt' )
394395 if '-mnontrapping-fptoint' not in user_args and '-mno-nontrapping-fptoint' not in user_args :
395396 flags .append ('-mno-nontrapping-fptoint' )
396397
@@ -1023,7 +1024,7 @@ def get_clang_command_asm():
10231024 if state .mode == Mode .PCH :
10241025 inputs = [i [1 ] for i in input_files ]
10251026 for header in inputs :
1026- if not shared .suffix (header ) in HEADER_ENDINGS :
1027+ if shared .suffix (header ) not in HEADER_ENDINGS :
10271028 exit_with_error (f'cannot mix precompiled headers with non-header inputs: { inputs } : { header } ' )
10281029 cmd = get_clang_command () + inputs
10291030 if options .output_file :
@@ -1127,7 +1128,15 @@ def version_string():
11271128 return f'emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) { utils .EMSCRIPTEN_VERSION } { revision_suffix } '
11281129
11291130
1130- def parse_args (newargs ):
1131+ def parse_args (newargs ): # noqa: C901, PLR0912, PLR0915
1132+ """Future modifications should consider refactoring to reduce complexity.
1133+
1134+ * The McCabe cyclomatiic complexity is currently 117 vs 10 recommended.
1135+ * There are currently 115 branches vs 12 recommended.
1136+ * There are currently 302 statements vs 50 recommended.
1137+
1138+ To revalidate these numbers, run `ruff check --select=C901,PLR091`.
1139+ """
11311140 options = EmccOptions ()
11321141 settings_changes = []
11331142 user_js_defines = []
0 commit comments