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

Duncan Sands baldrick at free.fr
Fri Jun 22 03:21:03 PDT 2012


Author: baldrick
Date: Fri Jun 22 05:21:03 2012
New Revision: 158984

URL: http://llvm.org/viewvc/llvm-project?rev=158984&view=rev
Log:
By default target the compiler used to build the plugin, rather than "gcc".
Try to make the comments more helpful for people who don't know how make
variables work.

Modified:
    dragonegg/trunk/Makefile

Modified: dragonegg/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/Makefile?rev=158984&r1=158983&r2=158984&view=diff
==============================================================================
--- dragonegg/trunk/Makefile (original)
+++ dragonegg/trunk/Makefile Fri Jun 22 05:21:03 2012
@@ -1,12 +1,17 @@
-# Specify the gcc executable you will use the dragonegg plugin with here.
-GCC?=gcc
+# Specify the gcc executable you will use the dragonegg plugin with either here
+# or on the command line, for example like this (replace gcc-4.7 with the gcc
+# you want to load the plugin into):
+#   GCC=gcc-4.7 make ...
+# If you don't specify anything, then by default the plugin targets the compiler
+# used to build it.
+GCC?=$(CXX)
 
 # Specify the copy of LLVM you will build the plugin against by giving its
-# llvm-config here.  To use an installed copy of LLVM, specify the installed
-# llvm-config (just 'llvm-config' is enough if llvm-config is in your path).
-# It is not necessary to install LLVM to build dragonegg against it.  Instead
-# you can do an LLVM build and point LLVM_CONFIG to the copy of llvm-config
-# that was created during the build.
+# llvm-config here or on the command line.  To use an installed copy of LLVM,
+# specify the installed llvm-config (just 'llvm-config' is enough if it is in
+# your path).  It is not necessary to install LLVM to build dragonegg against
+# it.  Instead you can do an LLVM build and point LLVM_CONFIG to the copy of
+# llvm-config that was created during the build.
 LLVM_CONFIG?=llvm-config
 
 # Location of this Makefile, useful if you want separate source and object





More information about the llvm-commits mailing list