[llvm-commits] [dragonegg] r142575 - /dragonegg/trunk/Makefile

Duncan Sands baldrick at free.fr
Thu Oct 20 03:28:38 PDT 2011


Author: baldrick
Date: Thu Oct 20 05:28:38 2011
New Revision: 142575

URL: http://llvm.org/viewvc/llvm-project?rev=142575&view=rev
Log:
If there is no micro version (i.e. gcc reports itself to be version 4.6 rather
than 4.6.0) ensure the micro version is zero, avoiding a compile failure.

Modified:
    dragonegg/trunk/Makefile

Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=142575&r1=142574&r2=142575&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Thu Oct 20 05:28:38 2011
@@ -31,7 +31,7 @@
 endif
 
 GCC_PLUGIN_DIR:=$(shell $(GCC) -print-file-name=plugin)
-GCC_VERSION:=$(shell $(GCC) -dumpversion)
+GCC_VERSION:=$(shell $(GCC) -dumpversion).0
 GCC_MAJOR=$(word 1, $(subst ., ,$(GCC_VERSION)))
 GCC_MINOR=$(word 2, $(subst ., ,$(GCC_VERSION)))
 GCC_MICRO=$(word 3, $(subst ., ,$(GCC_VERSION)))





More information about the llvm-commits mailing list