diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-05-13 10:36:58 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-06 20:02:37 +0000 |
commit | f4d60acaa924b4735fc71b7a9c716fbea824c877 (patch) | |
tree | 76c568025844e6f39628666a80795979a632a148 /mesonbuild/environment.py | |
parent | 75e501ceb8888562b2749d20ba2c43374e5c9671 (diff) | |
download | meson-f4d60acaa924b4735fc71b7a9c716fbea824c877.zip meson-f4d60acaa924b4735fc71b7a9c716fbea824c877.tar.gz meson-f4d60acaa924b4735fc71b7a9c716fbea824c877.tar.bz2 |
Remove had_argument_for() it is not used anymore
This also means we don't need to keep original command line arguments
anymore.
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index a859bad..9b252a2 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -266,7 +266,7 @@ class Environment: private_dir = 'meson-private' log_dir = 'meson-logs' - def __init__(self, source_dir, build_dir, options, original_cmd_line_args): + def __init__(self, source_dir, build_dir, options): self.source_dir = source_dir self.build_dir = build_dir self.scratch_dir = os.path.join(build_dir, Environment.private_dir) @@ -289,7 +289,6 @@ class Environment: else: self.cross_info = None self.cmd_line_options = options - self.original_cmd_line_args = original_cmd_line_args # List of potential compilers. if mesonlib.is_windows(): @@ -374,18 +373,6 @@ class Environment: def is_library(self, fname): return is_library(fname) - def had_argument_for(self, option): - trial1 = coredata.get_builtin_option_cmdline_name(option) - trial2 = '-D' + option - previous_is_plaind = False - for i in self.original_cmd_line_args: - if i.startswith(trial1) or i.startswith(trial2): - return True - if previous_is_plaind and i.startswith(option): - return True - previous_is_plaind = i == '-D' - return False - @staticmethod def get_gnu_compiler_defines(compiler): """ |