www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21193] New: add compiler flag in both "Compile+Run" and


          Issue ID: 21193
           Summary: add compiler flag in both "Compile+Run" and
                    "Compile+Debug" option does not work
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: mingwu gmail.com

The discussion is here: 

https://forum.dlang.org/thread/nwlfbdmgdwfocnwvpzlc forum.dlang.org

I just tried add '-d' as it showed here: in both "Compile+Run" and


And I did "Rebuild" the solution, but that error still there.

I find a work-around (adding "-d" on VisualD doesn't work), I end up add "-d"
to the sc.ini file:

$ find /mnt/c/project/dlang/dmd-2.093.1  -name '*ini' | grep bin

DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import" "-d"

Although I'm on 64-bit Windows 10, change bin64/sc.ini does not work; change
bin/sc.ini worked.

Hope this will help someone who has similar issues.

Aug 24 2020