Skip to content

Commit cf90417

Browse files
authored
Use DEPRECATED_SETTINGS for RUNTIME_LINKED_LIBS (#21522)
And also for CLOSURE_WARNINGS
1 parent 5d1c39d commit cf90417

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

emcc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,6 @@ def phase_setup(options, state, newargs):
711711
"""
712712

713713
if settings.RUNTIME_LINKED_LIBS:
714-
diagnostics.warning('deprecated', 'RUNTIME_LINKED_LIBS is deprecated; you can simply list the libraries directly on the commandline now')
715714
newargs += settings.RUNTIME_LINKED_LIBS
716715

717716
# Find input files

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,8 @@ RUNTIME_LINKED_LIBS
14061406

14071407
Deprecated, list shared libraries directly on the command line instead.
14081408

1409+
.. note:: This setting is deprecated
1410+
14091411
.. _build_as_worker:
14101412

14111413
BUILD_AS_WORKER

src/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@ var SIDE_MODULE = 0;
11071107

11081108
// Deprecated, list shared libraries directly on the command line instead.
11091109
// [link]
1110+
// [deprecated]
11101111
var RUNTIME_LINKED_LIBS = [];
11111112

11121113
// If set to 1, this is a worker library, a special kind of library that is run

tools/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@
119119
'SUPPORT_ERRNO': 'emscripten no longer uses the setErrNo library function',
120120
'EXTRA_EXPORTED_RUNTIME_METHODS': 'please use EXPORTED_RUNTIME_METHODS instead',
121121
'DEMANGLE_SUPPORT': 'mangled names no longer appear in stack traces',
122+
'RUNTIME_LINKED_LIBS': 'you can simply list the libraries directly on the commandline now',
123+
'CLOSURE_WARNINGS': 'use -Wclosure instead',
122124
}
123125

124126
# Settings that don't need to be externalized when serializing to json because they

0 commit comments

Comments
 (0)