2
0
Эх сурвалжийг харах

* support for -Cg- to disable pic code

git-svn-id: trunk@8841 -
Jonas Maebe 18 жил өмнө
parent
commit
2db3d54b2e

+ 2 - 0
compiler/options.pas

@@ -508,6 +508,8 @@ begin
                     'g' :
                     'g' :
                        if tf_no_pic_supported in target_info.flags then
                        if tf_no_pic_supported in target_info.flags then
                          message(scan_w_pic_ignored)
                          message(scan_w_pic_ignored)
+                       else if UnsetBool(More, j) then
+                         exclude(init_settings.moduleswitches,cs_create_pic)
                        else
                        else
                          include(init_settings.moduleswitches,cs_create_pic);
                          include(init_settings.moduleswitches,cs_create_pic);
                     'h' :
                     'h' :