[dmd-internals] Test with the -lib flag
Jacob Carlborg via dmd-internals
dmd-internals at puremagic.com
Sun Jun 12 11:44:22 PDT 2016
I discovered that it’s actually possible to use a bash script as a test file instead of a D file. The bash script will handle the building and running of the D code.
> On 12 jun 2016, at 13:52, Михаил Страшун via dmd-internals <dmd-internals at puremagic.com> wrote:
> On 06/11/2016 02:46 PM, Jacob Carlborg via dmd-internals wrote:
>> I need to create a test for the DMD test suite that consists of two files, one which need to be compiled with the -lib flag and one without, which links with the library. There’s the EXTRA_SOURCES test variable but as far as I can see it’s not possible to specify any flags for the extra sources.
>> What’s the best way to solve this?
> AFAIR test runner doesn't support such functionality, it is only capable
> of compiling bunch of files at once (with configurable flags). Thus you
> will need to extend the runner itself.
> dmd-internals mailing list
> dmd-internals at puremagic.com
More information about the dmd-internals