aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/coredata.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-04-01 20:07:00 +0300
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-04-01 19:20:08 +0000
commit1a79fdd7e78b432055347b40cec184284d86c307 (patch)
tree886c49927488b0cdc7520af34d8fbfb413c6f112 /mesonbuild/coredata.py
parent201ef0778ec49478d879da415c64a7b310631089 (diff)
downloadmeson-1a79fdd7e78b432055347b40cec184284d86c307.zip
meson-1a79fdd7e78b432055347b40cec184284d86c307.tar.gz
meson-1a79fdd7e78b432055347b40cec184284d86c307.tar.bz2
Reuse build setup for host when native compiling. Closes #5047.
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r--mesonbuild/coredata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index b5f48bd..01db635 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -531,7 +531,7 @@ class CoreData:
if cross_comp is not None:
new_options_for_host = cross_comp.get_and_default_options(env.properties.host)
else:
- new_options_for_host = comp.get_and_default_options(env.properties.host)
+ new_options_for_host = new_options_for_build
opts_machines_list = [
(new_options_for_build, MachineChoice.BUILD),