huntlabs / hunt

A refined core library for D programming language. The module has concurrency / collections / event / io / logging / text / serialization and more.
Apache License 2.0
95 stars 15 forks source link

meson: fix build with dmd/gcc #79

Closed Cogitri closed 4 years ago

Cogitri commented 4 years ago

All D compilers have different args to link the standard library, libphobos, in a shared manner. Previously we just hardcoded ldc2's switch for this, but this commit adjusts this so that it also works with dmd and gdc.

Heromyth commented 4 years ago

The travis-ci failed: https://travis-ci.org/huntlabs/hunt/jobs/626195644?utm_medium=notification&utm_source=github_status

I'm not sure whether the shared libs of dmd work.

Cogitri commented 4 years ago

It should work, but I'll have to give it another look.

Cogitri commented 4 years ago

Fixed that. Another thing: Please keep the project version defined in the meson.build in the root of the project in sync with the version you specify in your dub.json.

Heromyth commented 4 years ago

Thanks a lot! I'll merge it.

Fixed that. Another thing: Please keep the project version defined in the meson.build in the root of the project in sync with the version you specify in your dub.json.

There is no version setting in Hunt's dub.json.