RejectedSoftware Forums

Sign up

How do we tell dub to use gdc?

Hi,

  1. How do we tell dub to use gdc? On Debian wheezy, the actual gdc bin is gdc-4.6. For any variation on:
$ dub --compiler=gdc-4.6

I keep getting the error message:

Error executing command run: Failed to invoke the compiler gdc-4.6 to determine the build platform: {
  "compiler": "gdc",
  "frontendVersion": 2055,
  "compilerVendor": "GDC",
  "platform": [
/tmp/dub_platform_probe.d:43: Error: function expected before (), not join(ret.data()) of type string
/tmp/dub_platform_probe.d:11: Error: cannot evaluate determinePlatform() at compile time
"    " ~ determinePlatform()
  ],
  "architecture": [
/tmp/dub_platform_probe.d:14: Error: cannot evaluate determineArchitecture() at compile time
"    " ~ determineArchitecture()
   ],
}

Thing is, unless I am really tired, It is nowhere to be found on how to tell dub to use a given compiler. I found the --compiler flag somewhere on the forum.

Thx,

Olivier

Re: How do we tell dub to use gdc?

Reposted on dub thread... to be deleted. Thx.