X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Fports%2Fhost%2Fspec.mk;h=077e1df57e67ad508a44e550a7b6cd11fdbf85b2;hb=1fd4cd6fc84d59c208d9e7b64318599c82af334e;hp=e1dd68f64676f75d61046e5b3eccc7f78b1153da;hpb=2fcf3d6768c671cf2627dc5767cf2879c1a7a298;p=fw%2Fsdcc diff --git a/support/regression/ports/host/spec.mk b/support/regression/ports/host/spec.mk index e1dd68f6..077e1df5 100644 --- a/support/regression/ports/host/spec.mk +++ b/support/regression/ports/host/spec.mk @@ -1,5 +1,5 @@ # Port specification for compiling on the host machines version of gcc -SDCC = $(shell which gcc > /dev/null || which cc) +SDCC = $(shell ( sh -c "gcc --version" 2>&1 ) > /dev/null && echo gcc || echo cc) SDCCFLAGS = -DPORT_HOST=1 -Wall -fsigned-char -DREENTRANT= EXEEXT = .bin