mirror of
https://github.com/mesonbuild/meson.git
synced 2026-06-24 08:48:03 +00:00
coredata: fix handling of prefix
Which was improperly updated by the option store refactor. Fixes: #14329
This commit is contained in:
committed by
Eli Schwartz
parent
ec43d02577
commit
751e8f1530
@@ -571,12 +571,11 @@ class CoreData:
|
||||
# Set prefix first because it's needed to sanitize other options
|
||||
pfk = OptionKey('prefix')
|
||||
if pfk in opts_to_set:
|
||||
prefix = self.sanitize_prefix(opts_to_set[pfk])
|
||||
prefix = self.optstore.sanitize_prefix(opts_to_set[pfk])
|
||||
for key in options.BUILTIN_DIR_NOPREFIX_OPTIONS:
|
||||
if key not in opts_to_set:
|
||||
val = options.BUILTIN_OPTIONS[key].prefixed_default(key, prefix)
|
||||
tmpkey = options.convert_oldkey(key)
|
||||
dirty |= self.optstore.set_option(tmpkey, val)
|
||||
dirty |= self.optstore.set_option(key, val)
|
||||
|
||||
unknown_options: T.List[OptionKey] = []
|
||||
for k, v in opts_to_set.items():
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
project('linker script', 'c')
|
||||
project('linker script', 'c', default_options : {'prefix': '/tmp'})
|
||||
|
||||
# Solaris 11.4 ld supports --version-script only when you also specify
|
||||
# -z gnu-version-script-compat
|
||||
|
||||
Reference in New Issue
Block a user