www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12963] New: posix.mak hardcodes $(CC) as cc on non Windows


          Issue ID: 12963
           Summary: posix.mak hardcodes $(CC) as cc on non Windows system
           Product: D
           Version: unspecified
          Hardware: x86
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: jason.brian.king gmail.com

Currently, the Phobos posix.mak contains the following lines:

# Set CC and DMD
ifeq ($(OS),win32wine)
        CC = wine dmc.exe
        DMD = wine dmd.exe
        RUN = wine
        DMD = ../dmd/src/dmd
        ifeq ($(OS),win32)
                CC = dmc
                CC = cc
        RUN =

This has the effect of hardcoding $CC to cc on non-Win32 systems.  I don't
think there's any reason this should hard code this on non-Win32 systems (as it
precludes using a specific C compiler).

Jun 22 2014