Alexei Sorokin 2018-03-21 23:03:57 +00:00 committed by Git OBS Bridge
parent ccb7495013
commit 6e97a6edde

View File

@ -6,9 +6,9 @@
def get_options(self):
+ cpp_stds = ['c++98', 'c++03', 'c++11', 'gnu++03', 'gnu++11']
+ if version_compare(self.version, '>=5.0.0'):
+ c_stds += ['c++14', 'c++17', 'c++1z', 'gnu++14', 'gnu++17', 'gnu++1z']
+ cpp_stds += ['c++14', 'c++17', 'c++1z', 'gnu++14', 'gnu++17', 'gnu++1z']
+ else:
+ c_stds += ['c++1y', 'gnu++1y']
+ cpp_stds += ['c++1y', 'gnu++1y']
opts = {'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use',
- ['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
- 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z'],