Pārlūkot izejas kodu

* don't disable -Xs when -g and -Xg is used

git-svn-id: trunk@6629 -
peter 18 gadi atpakaļ
vecāks
revīzija
2ea4c683db
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. 5 2
      compiler/options.pas

+ 5 - 2
compiler/options.pas

@@ -2273,8 +2273,11 @@ begin
     include(init_settings.globalswitches,cs_link_extern);
 
   { turn off stripping if compiling with debuginfo or profile }
-  if (cs_debuginfo in init_settings.moduleswitches) or
-     (cs_profile in init_settings.moduleswitches) then
+  if (
+      (cs_debuginfo in init_settings.moduleswitches) or
+      (cs_profile in init_settings.moduleswitches)
+     ) and
+     not(cs_link_separate_dbg_file in init_settings.globalswitches) then
     exclude(init_settings.globalswitches,cs_link_strip);
 
   { force fpu emulation on arm/wince, arm/gba and arm/nds}