Changeset 1edbe2f in git for ppcc/autosetup
- Timestamp:
- Feb 15, 2019, 11:51:03 AM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 1a8dbfb80bfd40214596b9b7d6461ddaf34bbbb9
- Parents:
- 73bf78cfb1c82e93496a5857586fa0b8ee97ecfa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ppcc/autosetup/adlib.patch
r73bf78 r1edbe2f 65 65 *************** 66 66 *** 505,511 **** 67 67 68 68 # Build the command line 69 69 set cmdline {} … … 76 76 *** 659,665 **** 77 77 } 78 78 79 79 # Initialise some values from the environment or commandline or default settings 80 80 ! foreach i {LDFLAGS LIBS CPPFLAGS LINKFLAGS {CFLAGS "-g -O2"}} { … … 84 84 --- 661,667 ---- 85 85 } 86 86 87 87 # Initialise some values from the environment or commandline or default settings 88 88 ! foreach i {LDFLAGS LIBS CPPFLAGS LINKFLAGS CFLAGS} { … … 114 114 ! define CXX [find-an-executable [get-define cross]c++ [get-define cross]g++ false] 115 115 } 116 116 117 117 # CXXFLAGS default to CFLAGS if not specified 118 118 define CXXFLAGS [get-env CXXFLAGS [get-define CFLAGS]] 119 119 120 120 # May need a CC_FOR_BUILD, so look for one 121 121 ! define CC_FOR_BUILD [find-an-executable [get-env CC_FOR_BUILD ""] cc gcc false] 122 122 123 123 if {[get-define CC] eq ""} { 124 124 user-error "Could not find a C compiler. Tried: [join $try ", "]" … … 129 129 ! define CXX [find-an-executable [get-define cross]g++ [get-define cross]clang++ [get-define cross]c++ false] 130 130 } 131 131 132 132 # CXXFLAGS default to CFLAGS if not specified 133 133 define CXXFLAGS [get-env CXXFLAGS [get-define CFLAGS]] 134 134 135 135 # May need a CC_FOR_BUILD, so look for one 136 136 ! define CC_FOR_BUILD [find-an-executable [get-env CC_FOR_BUILD ""] gcc clang cc false] 137 137 138 138 if {[get-define CC] eq ""} { 139 139 user-error "Could not find a C compiler. Tried: [join $try ", "]" … … 142 142 cc-store-settings {-cflags {} -includes {} -declare {} -link 0 -lang c -libs {} -code {} -nooutput 0} 143 143 set autosetup(cc-include-deps) {} 144 144 145 145 ! msg-result "C compiler...[get-define CCACHE] [get-define CC] [get-define CFLAGS]" 146 146 if {[get-define CXX] ne "false"} { … … 148 148 } 149 149 msg-result "Build C compiler...[get-define CC_FOR_BUILD]" 150 150 151 151 --- 713,721 ---- 152 152 cc-store-settings {-cflags {} -includes {} -declare {} -link 0 -lang c -libs {} -code {} -nooutput 0} 153 153 set autosetup(cc-include-deps) {} 154 154 155 155 ! msg-result "C compiler...[get-define CC] [get-define CFLAGS]" 156 156 if {[get-define CXX] ne "false"} { … … 158 158 } 159 159 msg-result "Build C compiler...[get-define CC_FOR_BUILD]" 160 160
Note: See TracChangeset
for help on using the changeset viewer.