[build2] How to append options to dumpmachine ?

Michael Martin Moro sexymimi64 at gmail.com
Mon Feb 17 11:24:49 UTC 2025


Hi !

I'm trying to get the cheerp compiler to work with build2. Cheerp 
supports two targets, one for WASM, another for JavaScript. The default 
one is WASM, but the one I want to use is JavaScript.

The issue is that when Build2 probes the compiler, it calls:

/opt/cheerp/bin/clang++ -dumpmachine

Which returns the default target, cheerp-leaningtech-webbrowser-wasm.

I want it to return cheerp-leaningtech-webbrowser-genericjs, which would 
be the result of:

/opt/cheerp/bin/clang++ -dumpmachine -target cheerp-genericjs

Is there a way to specify the options passed when running -dumpmachine ?

Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20250217/5209e103/attachment.html>


More information about the users mailing list