From cc063e7a9c6ea5455b4afdc4d3507eafa45346c1 Mon Sep 17 00:00:00 2001 From: Sven/Sarah Barth Date: Fri, 11 Oct 2024 16:18:25 +0200 Subject: [PATCH] * add procsyms from exports also to deffile if user explicitly asked for one --- compiler/pexports.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/pexports.pas b/compiler/pexports.pas index 3f1d5aa185..391d434f1d 100644 --- a/compiler/pexports.pas +++ b/compiler/pexports.pas @@ -194,7 +194,11 @@ implementation try_to_consume(_LAST); end; end; - if (DefString<>'') and UseDeffileForExports then + if (DefString<>'') and + ( + UseDeffileForExports or + (cs_link_deffile in current_settings.globalswitches) + ) then DefFile.AddExport(DefString); end; // consumed the symbol. Only do something if there was no error.