From bdeb161d85e590f36fb0b5eb88c2cd1e3f1943ef Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Wed, 16 Oct 2024 15:46:34 +0300 Subject: [PATCH] * ignore the -gl parameter (and print a warning) on the embedded targets --- compiler/options.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/options.pas b/compiler/options.pas index f9dee6209d..993bf01734 100644 --- a/compiler/options.pas +++ b/compiler/options.pas @@ -3253,7 +3253,7 @@ begin exclude(init_settings.globalswitches,cs_use_lineinfo) else begin - if target_info.system in systems_wasm then + if target_info.system in (systems_wasm+systems_embedded) then IgnoredPara('-gl') else include(init_settings.globalswitches,cs_use_lineinfo);