|
|
| 152 |
help=("Specify the build profile. " |
152 |
help=("Specify the build profile. " |
| 153 |
"Build profiles control the default compilation flags" |
153 |
"Build profiles control the default compilation flags" |
| 154 |
" used for C/C++ programs, if CCFLAGS/CXXFLAGS are not" |
154 |
" used for C/C++ programs, if CCFLAGS/CXXFLAGS are not" |
| 155 |
" set set in the environment. [Allowed Values: %s]" |
155 |
" set in the environment. [Allowed Values: %s]" |
| 156 |
% ", ".join([repr(p) for p in list(profiles.keys())])), |
156 |
% ", ".join([repr(p) for p in list(profiles.keys())])), |
| 157 |
choices=list(profiles.keys()), |
157 |
choices=list(profiles.keys()), |
| 158 |
dest='build_profile') |
158 |
dest='build_profile') |
| 159 |
|
159 |
opt.add_option('--check-profile', |
|
|
160 |
help=('print out current build profile'), |
| 161 |
default=False, dest='check_profile', action="store_true") |
| 160 |
def configure(conf): |
162 |
def configure(conf): |
| 161 |
cc = conf.env['COMPILER_CC'] or None |
163 |
cc = conf.env['COMPILER_CC'] or None |
| 162 |
cxx = conf.env['COMPILER_CXX'] or None |
164 |
cxx = conf.env['COMPILER_CXX'] or None |