diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-05-22 23:59:02 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-05-23 21:26:45 +0300 |
| commit | 5365d9a842938dc9182b52bcdb9674a434475200 (patch) | |
| tree | 993785966b37b9243281ec4eebcbac669ae5d708 /mesonbuild/compilers/objcpp.py | |
| parent | 631b38577ee01d9273f7f42747762d5f8cabc15a (diff) | |
| download | meson-5365d9a842938dc9182b52bcdb9674a434475200.tar.gz | |
Refactor option classes to their own file.
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
| -rw-r--r-- | mesonbuild/compilers/objcpp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py index 46eaa5049..e28e3ed30 100644 --- a/mesonbuild/compilers/objcpp.py +++ b/mesonbuild/compilers/objcpp.py @@ -6,6 +6,7 @@ from __future__ import annotations import typing as T from .. import coredata +from .. import options from ..mesonlib import OptionKey from .mixins.clike import CLikeCompiler @@ -80,7 +81,7 @@ class ClangObjCPPCompiler(ClangCompiler, ObjCPPCompiler): def get_options(self) -> coredata.MutableKeyedOptionDictType: return self.update_options( super().get_options(), - self.create_option(coredata.UserComboOption, + self.create_option(options.UserComboOption, OptionKey('std', machine=self.for_machine, lang='cpp'), 'C++ language standard to use', ['none', 'c++98', 'c++11', 'c++14', 'c++17', 'c++20', 'c++2b', |
