<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi !</p>
<p>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.<br>
</p>
<p>The issue is that when Build2 probes the compiler, it calls:</p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">/opt/cheerp/bin/clang++
-dumpmachine</span><br>
</span></p>
<p>Which returns the default target, <span
style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">cheerp-leaningtech-webbrowser-wasm</span></span>.</p>
<p>I want it to return <span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">cheerp-leaningtech-webbrowser-genericjs</span></span>,
which would be the result of:</p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">/opt/cheerp/bin/clang++
-dumpmachine -target cheerp-genericjs<br>
</span></span></p>
<p>Is there a way to specify the options passed when running
-dumpmachine ?</p>
<p>Thanks !<br>
</p>
</body>
</html>