summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/hotdoc.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-30 13:16:42 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-07-11 11:53:39 +0300
commit0d7bb776e2d97d406b726b90090bbfa8df13232b (patch)
tree78817e1840f0741439871682b3c25a1e40a3067f /mesonbuild/modules/hotdoc.py
parentc2552527fb2f607052c7aed633b67dbb19f06e38 (diff)
downloadmeson-0d7bb776e2d97d406b726b90090bbfa8df13232b.tar.gz
Move OptionKey in the option source file.
Diffstat (limited to 'mesonbuild/modules/hotdoc.py')
-rw-r--r--mesonbuild/modules/hotdoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py
index fc8832efc..50b5fe6f2 100644
--- a/mesonbuild/modules/hotdoc.py
+++ b/mesonbuild/modules/hotdoc.py
@@ -20,6 +20,7 @@ from ..interpreter.interpreterobjects import _CustomTargetHolder
from ..interpreter.type_checking import NoneType
from ..mesonlib import File, MesonException
from ..programs import ExternalProgram
+from ..options import OptionKey
if T.TYPE_CHECKING:
from typing_extensions import TypedDict
@@ -330,7 +331,7 @@ class HotdocTargetBuilder:
for path in self.include_paths:
self.cmd.extend(['--include-path', path])
- if self.state.environment.coredata.get_option(mesonlib.OptionKey('werror', subproject=self.state.subproject)):
+ if self.state.environment.coredata.get_option(OptionKey('werror', subproject=self.state.subproject)):
self.cmd.append('--fatal-warnings')
self.generate_hotdoc_config()