support --param=std=gnu++XX
authorEric Fiselier <eric@efcs.ca>
Wed, 12 Oct 2016 09:53:35 +0000 (09:53 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 12 Oct 2016 09:53:35 +0000 (09:53 +0000)
llvm-svn: 283997

libcxx/test/libcxx/test/config.py

index 06d3a7b..a786c3f 100644 (file)
@@ -347,7 +347,7 @@ class Configuration(object):
                     'Failed to infer a supported language dialect from one of %r'
                     % possible_stds)
         self.cxx.compile_flags += ['-std={0}'.format(std)]
-        self.config.available_features.add(std)
+        self.config.available_features.add(std.replace('gnu++', 'c++'))
         # Configure include paths
         self.configure_compile_flags_header_includes()
         self.target_info.add_cxx_compile_flags(self.cxx.compile_flags)