buildTestExecutable

fnstring buildTestExecutable(string[] sourcePaths) @safe

Compiles D source files to an executable for use in integration tests.

The compiler is selected from the DC environment variable, falling back to dmd when unset. The -g flag is included for source-level debugging.

Parameters

sourcePathsPaths to .d files.

Returns

Path to the produced executable.

Throws

Exception if compilation fails.
fnstring buildTestExecutable(string sourcePath) @safe

Compiles a single D source file to an executable for use in integration tests.

Parameters

sourcePathPath to .d file.

Returns

Path to the produced executable.