New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22324: patch-tools-darwin.jam.diff

File patch-tools-darwin.jam.diff, 1.4 KB (added by markdigital69@…, 3 years ago)
  • tools/darwin.jam

    old new  
    4141    { 
    4242        flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ; 
    4343    } 
     44    # - GCC 4.2 and higher in Darwin does not have -Wno-long-double. 
     45    if $(gccversion) < "4.2.0" 
     46    { 
     47        flags darwin.compile OPTIONS $(condition) : -Wno-long-double ; 
     48    } 
    4449 
    4550    gcc.init-link-flags darwin darwin $(condition) ; 
    4651     
     
    5055feature framework : : free ; 
    5156 
    5257flags darwin.compile OPTIONS <link>shared : -dynamic ; 
    53 flags darwin.compile OPTIONS : -Wno-long-double -no-cpp-precomp  ; 
     58flags darwin.compile OPTIONS : -no-cpp-precomp  ; 
    5459 
    5560flags darwin.link FRAMEWORK <framework> ; 
    5661 
     
    6368# set up the -F option to include the paths to any frameworks used. 
    6469local rule prepare-framework-path ( target + ) 
    6570{ 
     71    # The -framework option only takes basename of the framework. 
     72    # The -F option specifies the directories where a framework 
     73    # is searched for.  So, if we find <framework> feature 
     74    # with some path, we need to generate property -F option. 
    6675    local framework-path = [ on $(target) return $(FRAMEWORK:D) ] ; 
    6776     
    68     FRAMEWORK_PATH on $(target) += -F$(framework-path) ; 
     77    # Be sure to generate no -F if there's no path. 
     78    if $(framework-path) != "" 
     79    { 
     80        FRAMEWORK_PATH on $(target) += -F$(framework-path) ; 
     81    } 
    6982} 
    7083 
    7184rule link