You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Ignore the next argument rather than trying to parse it. This is needed
229
235
# because that next arg could, for example, start with `-o` and we don't want
@@ -301,11 +307,6 @@ def consume_arg_file():
301
307
newargs[i] ='-O3'
302
308
level=3
303
309
settings.OPT_LEVEL=level
304
-
elifcheck_arg('--js-opts'):
305
-
logger.warning('--js-opts ignored when using llvm backend')
306
-
consume_arg()
307
-
elifcheck_arg('--llvm-opts'):
308
-
diagnostics.warning('deprecated', '--llvm-opts is deprecated. All non-emcc args are passed through to clang.')
309
310
elifarg.startswith('-flto'):
310
311
if'='inarg:
311
312
settings.LTO=arg.split('=')[1]
@@ -315,9 +316,6 @@ def consume_arg_file():
315
316
settings.LTO=0
316
317
elifarg=="--save-temps":
317
318
options.save_temps=True
318
-
elifcheck_arg('--llvm-lto'):
319
-
logger.warning('--llvm-lto ignored when using llvm backend')
320
-
consume_arg()
321
319
elifcheck_arg('--closure-args'):
322
320
args=consume_arg()
323
321
settings.CLOSURE_ARGS+=shlex.split(args)
@@ -432,8 +430,6 @@ def consume_arg_file():
432
430
options.exclude_files.append(consume_arg())
433
431
elifcheck_flag('--use-preload-cache'):
434
432
options.use_preload_cache=True
435
-
elifcheck_flag('--no-heap-copy'):
436
-
diagnostics.warning('legacy-settings', 'ignoring legacy flag --no-heap-copy (that is the only mode supported now)')
437
433
elifcheck_flag('--use-preload-plugins'):
438
434
options.use_preload_plugins=True
439
435
elifcheck_flag('--ignore-dynamic-linking'):
@@ -446,17 +442,10 @@ def consume_arg_file():
446
442
options.shell_path=consume_arg_file()
447
443
elifcheck_arg('--source-map-base'):
448
444
options.source_map_base=consume_arg()
449
-
elifcheck_arg('--embind-emit-tsd'):
450
-
diagnostics.warning('deprecated', '--embind-emit-tsd is deprecated. Use --emit-tsd instead.')
451
-
options.emit_tsd=consume_arg()
452
445
elifcheck_arg('--emit-tsd'):
453
446
options.emit_tsd=consume_arg()
454
447
elifcheck_flag('--no-entry'):
455
448
options.no_entry=True
456
-
elifcheck_flag('--remove-duplicates'):
457
-
diagnostics.warning('legacy-settings', '--remove-duplicates is deprecated as it is no longer needed. If you cannot link without it, file a bug with a testcase')
458
-
elifcheck_flag('--jcache'):
459
-
logger.error('jcache is no longer supported')
460
449
elifcheck_arg('--cache'):
461
450
config.CACHE=os.path.abspath(consume_arg())
462
451
cache.setup()
@@ -481,14 +470,8 @@ def consume_arg_file():
481
470
elifcheck_flag('--show-ports'):
482
471
ports.show_ports()
483
472
should_exit=True
484
-
elifcheck_arg('--memory-init-file'):
485
-
exit_with_error('--memory-init-file is no longer supported')
486
-
elifcheck_flag('--proxy-to-worker'):
487
-
exit_with_error('--proxy-to-worker is no longer supported')
488
473
elifcheck_arg('--valid-abspath'):
489
474
options.valid_abspaths.append(consume_arg())
490
-
elifcheck_flag('--separate-asm'):
491
-
exit_with_error('cannot --separate-asm with the wasm backend, since not emitting asm.js')
492
475
elifarg.startswith(('-I', '-L')):
493
476
path_name=arg[2:]
494
477
# Look for '/' explicitly so that we can also diagnose identically if -I/foo/bar is passed on Windows.
@@ -549,8 +532,6 @@ def consume_arg_file():
549
532
settings.DISABLE_EXCEPTION_CATCHING=1
550
533
elifarg=='-ffast-math':
551
534
options.fast_math=True
552
-
elifcheck_arg('--default-obj-ext'):
553
-
exit_with_error('--default-obj-ext is no longer supported by emcc')
554
535
elifarg.startswith('-fsanitize=cfi'):
555
536
exit_with_error('emscripten does not currently support -fsanitize=cfi')
0 commit comments