소스 검색

* don't print a 'smart link requires external linker' warning in _any_ of the
following cases:
1) external linking is already enabled
2) target does not support an internal linker
3) the 'omit linking stage' option is used

git-svn-id: trunk@27543 -

nickysn 11 년 전
부모
커밋
015c3269a7
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      compiler/options.pas

+ 4 - 1
compiler/options.pas

@@ -2747,7 +2747,10 @@ begin
   if ((cs_link_smart in init_settings.globalswitches) or
       (cs_create_smart in init_settings.moduleswitches)) and
      (af_needar in target_asm.flags) and
-     not (af_smartlink_sections in target_asm.flags) then
+     not (af_smartlink_sections in target_asm.flags) and
+     not (cs_link_extern in init_settings.globalswitches) and
+     (target_info.link<>ld_none) and
+      not (cs_link_nolink in init_settings.globalswitches) then
     begin
       Message(option_smart_link_requires_external_linker);
       include(init_settings.globalswitches,cs_link_extern);