Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Mar 13, 2024
1 parent 14a035c commit 762e586
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions mesonbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,6 @@ def merge(self, other: Build) -> None:
continue
self.__dict__[k] = v

if is_native_cross:
# XXX: Should we merge dependency_overrides?
self.environment.coredata.merge_from_native_cross(other.environment.coredata)

def ensure_static_linker(self, compiler: Compiler) -> None:
if self.static_linker[compiler.for_machine] is None and compiler.needs_static_linker():
self.static_linker[compiler.for_machine] = detect_static_linker(self.environment, compiler)
Expand Down
4 changes: 0 additions & 4 deletions mesonbuild/coredata.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,6 @@ def copy_to_native(self) -> CoreData:

return other

def merge_from_native_cross(self, other: CoreData) -> None:
compiler_opts = {k.as_build(): v for k, v in other.options.items() if k.type is OptionType.COMPILER}
self.options.update(compiler_opts)

@staticmethod
def __load_config_files(options: argparse.Namespace, scratch_dir: str, ftype: str) -> T.List[str]:
# Need to try and make the passed filenames absolute because when the
Expand Down
3 changes: 0 additions & 3 deletions mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,11 +1105,9 @@ def _do_subproject_cargo(self, subp_name: str, subp_id: str, subdir: str,
def get_option_internal(self, optname: str) -> coredata.UserOption:
key = OptionKey.from_string(optname).evolve(subproject=self.subproject)

print('get_option_internal() A key:', key)
is_native_cross = self.coredata.is_native_cross()
if is_native_cross:
key = key.as_native_cross()
print('get_option_internal() B key:', key)

key_for_host = key.as_host()
is_machine_neutral_builtin = key.is_builtin() and key_for_host not in coredata.BUILTIN_OPTIONS_PER_MACHINE
Expand All @@ -1126,7 +1124,6 @@ def get_option_internal(self, optname: str) -> coredata.UserOption:
(compilers.base_options, key),
]
for opts, k in candidates:
print('get_option_internal() C k:', k)
v = opts.get(k)
if v is None or v.yielding:
v = opts.get(k.as_root())
Expand Down

0 comments on commit 762e586

Please sign in to comment.