mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 07:08:04 -06:00
15 lines
238 B
Makefile
15 lines
238 B
Makefile
GDC?=gdc
|
|
DMD?=dmd
|
|
LDC?=ldc2
|
|
demangle: demangle.d
|
|
ifneq "" "$(shell which ${DMD})"
|
|
$(DMD) -O -release $< -of$@
|
|
else ifneq "" "$(shell which ${GDC})"
|
|
$(GDC) -O2 $< -o $@
|
|
else
|
|
$(LDC) -O2 $< -of=$@
|
|
endif
|
|
|
|
clean:
|
|
rm -f demangle.o demangle
|