On Friday, 20 December 2024 at 09:03:22 UTC, Dan wrote:

## Step 3: Verify cross compilation is working

Compile a Dlang file for your target using ldc2. In my case, the command was `ldc2 -mtriple=x86_64-windows-msvc source/app.d`

If everything is set up correctly, congratulations! We now know how to cross compile with Dlang.

These steps can all be automated, no? Maybe the [D install script](https://dlang.org/install.html) should add options to make this seamless, it could look as simple as this:

```
~/dlang/install.sh ldc2 --target=x86_64-windows-msvc
```

Reply via email to