Reputation: 23
In meson you specify a cross-compiler in a cross-file like:
[binaries]
c = '/opt/yada-yada/gcc/bin/powerpc-yada-yada-gcc'
This is great if you know exactly where your compiler is going to live. If I want to specify the same compiler for Windows, I need a different cross-file like:
[binaries]
c = 'c:\Program Files (x86)\yada-yada\gcc\bin\powerpc-yada-yada-gcc'
Is there a way of using only a single cross-file for both platforms? I thought find_program
might help, but I just get an error about a Malformed value in cross file variable c.
Upvotes: 2
Views: 2266
Reputation: 24867
If you put your compilers in your path, you don't need to specify an absolute path.
Then, it will work on both systems.
Upvotes: 0
Reputation: 2282
No, the entire point of cross-files is to target a specific platform. Just make a directory to keep cross-files in.
Upvotes: 2