The --std was "non standard"; it's for any language
If there's a need '-x' should be added for selecting the language.
std is selecting the language standard of the input language
(whatever it is).
@@ -385,8 +385,8 @@ def processInputFiles(inFiles, tmpDir, options, tceopsDir=None):
if options.soft_float:
extra_opts += " -ffp-contract=off"
- if options.cxxstd:
- extra_opts += " --std=%s" % options.cxxstd
+ if options.std:
+ extra_opts += " --std=%s" % options.std
command = ("clang %s %s %s -emit-llvm " +\
"-O%d "\
@@ -1099,8 +1099,8 @@ p.add_option('--init-sp',
p.add_option('--std',
type="string", action="store", metavar='value',
- dest='cxxstd', default='c++11',
- help="C++ language standard to compile for.")
+ dest='std', default=None,
+ help="Language standard to compile for.")
p.add_option('--little-endian',
action="store_true", dest='little_endian', default=False,
