View | Details | Raw Unified | Return to bug 2202
Collapse All | Expand All

(-)a/waf-tools/cflags.py (-2 / +4 lines)
 Lines 152-162    Link Here 
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
(-)a/wscript (+5 lines)
 Lines 740-745    Link Here 
740
def build(bld):
740
def build(bld):
741
    env = bld.env
741
    env = bld.env
742
742
743
    if Options.options.check_profile:
744
        print("Build profile: %s" % Options.options.build_profile)
745
        raise SystemExit(0)
746
        return
747
743
    # If --enabled-modules option was given, then print a warning
748
    # If --enabled-modules option was given, then print a warning
744
    # message and exit this function.
749
    # message and exit this function.
745
    if Options.options.enable_modules:
750
    if Options.options.enable_modules:

Return to bug 2202