Changeset 1edbe2f in git for ppcc/autosetup


Ignore:
Timestamp:
Feb 15, 2019, 11:51:03 AM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
1a8dbfb80bfd40214596b9b7d6461ddaf34bbbb9
Parents:
73bf78cfb1c82e93496a5857586fa0b8ee97ecfa
Message:
format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ppcc/autosetup/adlib.patch

    r73bf78 r1edbe2f  
    6565***************
    6666*** 505,511 ****
    67  
     67
    6868        # Build the command line
    6969        set cmdline {}
     
    7676*** 659,665 ****
    7777  }
    78  
     78
    7979  # Initialise some values from the environment or commandline or default settings
    8080! foreach i {LDFLAGS LIBS CPPFLAGS LINKFLAGS {CFLAGS "-g -O2"}} {
     
    8484--- 661,667 ----
    8585  }
    86  
     86
    8787  # Initialise some values from the environment or commandline or default settings
    8888! foreach i {LDFLAGS LIBS CPPFLAGS LINKFLAGS CFLAGS} {
     
    114114!       define CXX [find-an-executable [get-define cross]c++ [get-define cross]g++ false]
    115115  }
    116  
     116
    117117  # CXXFLAGS default to CFLAGS if not specified
    118118  define CXXFLAGS [get-env CXXFLAGS [get-define CFLAGS]]
    119  
     119
    120120  # May need a CC_FOR_BUILD, so look for one
    121121! define CC_FOR_BUILD [find-an-executable [get-env CC_FOR_BUILD ""] cc gcc false]
    122  
     122
    123123  if {[get-define CC] eq ""} {
    124124        user-error "Could not find a C compiler. Tried: [join $try ", "]"
     
    129129!       define CXX [find-an-executable [get-define cross]g++ [get-define cross]clang++ [get-define cross]c++ false]
    130130  }
    131  
     131
    132132  # CXXFLAGS default to CFLAGS if not specified
    133133  define CXXFLAGS [get-env CXXFLAGS [get-define CFLAGS]]
    134  
     134
    135135  # May need a CC_FOR_BUILD, so look for one
    136136! define CC_FOR_BUILD [find-an-executable [get-env CC_FOR_BUILD ""] gcc clang cc false]
    137  
     137
    138138  if {[get-define CC] eq ""} {
    139139        user-error "Could not find a C compiler. Tried: [join $try ", "]"
     
    142142  cc-store-settings {-cflags {} -includes {} -declare {} -link 0 -lang c -libs {} -code {} -nooutput 0}
    143143  set autosetup(cc-include-deps) {}
    144  
     144
    145145! msg-result "C compiler...[get-define CCACHE] [get-define CC] [get-define CFLAGS]"
    146146  if {[get-define CXX] ne "false"} {
     
    148148  }
    149149  msg-result "Build C compiler...[get-define CC_FOR_BUILD]"
    150  
     150
    151151--- 713,721 ----
    152152  cc-store-settings {-cflags {} -includes {} -declare {} -link 0 -lang c -libs {} -code {} -nooutput 0}
    153153  set autosetup(cc-include-deps) {}
    154  
     154
    155155! msg-result "C compiler...[get-define CC] [get-define CFLAGS]"
    156156  if {[get-define CXX] ne "false"} {
     
    158158  }
    159159  msg-result "Build C compiler...[get-define CC_FOR_BUILD]"
    160  
     160
Note: See TracChangeset for help on using the changeset viewer.