* fixed setting up the global switch for main programs without a "program"

header on platforms not in systems_unit_program_exports

git-svn-id: trunk@26975 -
This commit is contained in:
Jonas Maebe 2014-03-06 18:41:03 +00:00
parent 2388575d3b
commit 009c96a0bd

View File

@ -2029,9 +2029,10 @@ type
consume(_SEMICOLON);
end
else if (target_info.system in systems_unit_program_exports) then
else
begin
exportlib.preparelib(current_module.realmodulename^);
if (target_info.system in systems_unit_program_exports) then
exportlib.preparelib(current_module.realmodulename^);
{ setup things using the switches }
setupglobalswitches;