Skip to content

Commit

Permalink
TOP BE SQUASHED Fix static analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Dec 15, 2018
1 parent f8c8f97 commit 870ec18
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mesonbuild/backend/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,12 @@ def get_compiler_options_for_target(self, target):
for_machine = MachineChoice.BUILD
else:
for_machine = MachineChoice.HOST

def fake_option(k, v):
opt = self.environment.coredata.compiler_options[k]
opt.value = v
return opt

return OptionOverrideProxy(
target.option_overrides,
# no code depends on builtins for now
Expand Down
4 changes: 3 additions & 1 deletion mesonbuild/backend/vs2010backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
from .. import mlog
from .. import compilers
from ..compilers import CompilerArgs
from ..mesonlib import MesonException, File, python_command, replace_if_different
from ..mesonlib import (
MesonException, MachineChoice, File, python_command, replace_if_different
)
from ..environment import Environment, build_filename

def autodetect_vs_version(build):
Expand Down
4 changes: 3 additions & 1 deletion mesonbuild/compilers/d.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

import os.path, subprocess

from ..mesonlib import EnvironmentException, version_compare, is_windows, is_osx
from ..mesonlib import (
EnvironmentException, MachineChoice, version_compare, is_windows, is_osx
)

from .compilers import (
CompilerType,
Expand Down

0 comments on commit 870ec18

Please sign in to comment.