[Issue 23401] New: importc can't select preprocessor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 10 13:03:47 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23401

          Issue ID: 23401
           Summary: importc can't select preprocessor
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: destructionator at gmail.com

When cross compiling, you often need to use a different preprocessor to get the
right platform defines. the CC env var doesn't get used here and there's no
switch to do it.

Of course, dmd doesn't do much cross compile anyway but it would still be nice
to have a way to do it.

--


More information about the Digitalmars-d-bugs mailing list