in reply to Re^3: perl 5.14.0-RC1 is available for testing!
in thread perl 5.14.0-RC1 is available for testing!

.IF "$(CCTYPE)" == "GCC" GCC_VERSION *= $(shell gcc -dumpversion) GCC_MAJOR_VERSION *= $(GCC_VERSION:b:b) .IF "$(GCC_MAJOR_VERSION)" == "4" GCC_4XX *= define .ENDIF .ENDIF
If that works, it would be an improvement.
One problem with it is that it's not guaranteed that the C compiler is called 'gcc'. With the mingw64 compiler that I use it's called 'x86_64-w64-mingw32-gcc' - and  gcc -dumpversion would simply return something like 'gcc' is not recognized as an internal or external command, operable program or batch file.

I guess, however, there might also be a way to cater for that possibility.

Cheers,
Rob

Replies are listed 'Best First'.
Re^5: perl 5.14.0-RC1 is available for testing!
by Anonymous Monk on Apr 24, 2011 at 16:42 UTC
    FWIW the actual compiler name is supposed to be in $(CC), CCTYPE is configuration variable I now prefer this.
      I now prefer this

      Could that be modified so that only the dll files get copied ? And would that work just as well ? (Or have I missed something ? I'll give it a try myself when I get a chance.)

      Copying the entire bin directory seems a bit heavy-handed to me.

      Cheers,
      Rob
        Doh, yup , that should be
        .IF "$(CCTYPE)" == "GCC" $(XCOPY) $(CCHOME)\bin\*dll ..\t\$(NULL) .ENDIF
        I've tested this and it works

        I'm tempted to rewrite this using Daiku, but i'm not fluent in make :)