Bug 12963 – posix.mak hardcodes $(CC) as cc on non Windows system
Status
RESOLVED
Resolution
INVALID
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2014-06-23T01:35:00Z
Last change time
2017-07-15T03:00:59Z
Assigned to
nobody
Creator
jason.brian.king
Comments
Comment #0 by jason.brian.king — 2014-06-23T01:35:53Z
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
else
DMD = ../dmd/src/dmd
ifeq ($(OS),win32)
CC = dmc
else
CC = cc
endif
RUN =
endif
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).
Comment #1 by razvan.nitu1305 — 2017-07-12T10:53:56Z
If another compiler needs to be used, a different branch can be easily added. Closing as invalid
Comment #2 by dlang-bugzilla — 2017-07-15T03:00:59Z
(In reply to Jason King from comment #0)
> This has the effect of hardcoding $CC to cc on non-Win32 systems.
Wait, how so? Can't you just specify CC=... on the make command line to override it?
(In reply to RazvanN from comment #1)
> If another compiler needs to be used, a different branch can be easily
> added. Closing as invalid
I agree that this should probably be closed by now , as it was filed 3 years ago and seems like a non-issue with a trivial workaround, but not with your close reason, as enhancements in makefiles are just as valid enhancement requests as in the compiler or standard library.