Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different behavior for profile #2130

Closed
Heromyth opened this issue May 7, 2021 · 1 comment
Closed

Different behavior for profile #2130

Heromyth opened this issue May 7, 2021 · 1 comment

Comments

@Heromyth
Copy link

Heromyth commented May 7, 2021

System information

  • dub version: dub 1.25
  • OS Platform and distribution: Linux Debian 4.9.144-3.1
  • compiler version: dmd-2.096.0

Bug Description

The -b=profile does't work for Hunt. It works to add

"dflags": ["-profile", "-profile=gc"],

to dub.json.

How to reproduce?

git clone https://github.com/huntlabs/hunt.git
cd examples/configuration
dub run --compiler=dmd -a=x86_64 -b=profile

Logs

Performing "profile" build using dmd for x86_64.
hunt 1.6.11+commit.5.g3820899: building configuration "library"...
/home/tom/dmd2/linux/bin64/../../src/phobos/std/concurrency.d(2104,17): Warning: statement is not reachable
dmd failed with exit code 1.
@Geod24
Copy link
Member

Geod24 commented Jul 14, 2021

This is an upstream issue. -profile does some extra control flow checking, which results in the warning being triggered.
This issue is https://issues.dlang.org/show_bug.cgi?id=13165

@Geod24 Geod24 closed this as completed Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants