Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix should follow the path scheme of the host machine #7577

Open
bonzini opened this issue Aug 11, 2020 · 0 comments
Open

Prefix should follow the path scheme of the host machine #7577

bonzini opened this issue Aug 11, 2020 · 0 comments

Comments

@bonzini
Copy link
Contributor

bonzini commented Aug 11, 2020

The prefix follows the path scheme of the host machine rather than the build machine, since it is the path under which the program will be installed on the host.

However, configuring a cross build with --prefix=c:/Program Files/XXX currently fails in sanitize_prefix, and default_prefix() likewise uses the build platform instead of the host.

To Reproduce

$ cat meson.build 
project('sample', 'c')

$ cat cross 
[binaries]
c = 'x86_64-linux-gnu-gcc'

[host_machine]
system = 'windows'
cpu_family = 'x86'
cpu = 'x86_64'
endian = 'little'

$ meson setup  --cross-file=cross --prefix='c:/Program Files/XXX' build
meson.build:1:0: ERROR: prefix value 'c:/Program Files/XXX' must be an absolute path

Expected behavior
The prefix is accepted, and DESTDIR=foo meson install places files in foo/c:/Program Files/XXX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant