From 9b39b79438b59333d06e737a9007768901da7fa9 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 28 Oct 2025 14:12:24 -0700 Subject: [PATCH] Remove RUNTIME_LINKED_LIBS from COMPILE_TIME_SETTINGS. NFC --- emcc.py | 3 --- tools/link.py | 3 +++ tools/settings.py | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/emcc.py b/emcc.py index d4228ce6a3ce9..14d38e9a00fe3 100644 --- a/emcc.py +++ b/emcc.py @@ -339,9 +339,6 @@ def separate_linker_flags(newargs): - Compiler flags are those to be passed to `clang -c`. """ - if settings.RUNTIME_LINKED_LIBS: - newargs += settings.RUNTIME_LINKED_LIBS - compiler_args = [] linker_args = [] diff --git a/tools/link.py b/tools/link.py index 42f0f6ad20545..d7ef1ee3c7e5f 100644 --- a/tools/link.py +++ b/tools/link.py @@ -3126,6 +3126,9 @@ def run(options, linker_args): # We have now passed the compile phase, allow reading/writing of all settings. settings.limit_settings(None) + if settings.RUNTIME_LINKED_LIBS: + linker_args += settings.RUNTIME_LINKED_LIBS + if not linker_args: exit_with_error('no input files') diff --git a/tools/settings.py b/tools/settings.py index c6b1465e50496..efa37777c336e 100644 --- a/tools/settings.py +++ b/tools/settings.py @@ -102,9 +102,6 @@ 'LTO', 'OPT_LEVEL', 'DEBUG_LEVEL', - - # This is legacy setting that we happen to handle very early on - 'RUNTIME_LINKED_LIBS', }.union(PORTS_SETTINGS) # Unlike `LEGACY_SETTINGS`, deprecated settings can still be used