[llvm-commits] [dragonegg] r163129 - in /dragonegg/trunk: README www/index.html
Duncan Sands
baldrick at free.fr
Tue Sep 4 01:15:04 PDT 2012
Author: baldrick
Date: Tue Sep 4 03:15:04 2012
New Revision: 163129
URL: http://llvm.org/viewvc/llvm-project?rev=163129&view=rev
Log:
Clarify that the gcc executable itself should be specified in the GCC
variable, not the directory containing it.
Modified:
dragonegg/trunk/README
dragonegg/trunk/www/index.html
Modified: dragonegg/trunk/README
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/README?rev=163129&r1=163128&r2=163129&view=diff
==============================================================================
--- dragonegg/trunk/README (original)
+++ dragonegg/trunk/README Tue Sep 4 03:15:04 2012
@@ -27,6 +27,17 @@
Build the plugin like this:
GCC=PATH_TO_INSTALLED_GCC make
This command should be executed in the directory containing this README.
+
+The plugin needs to know about the version of gcc it will be loaded into, which
+is why you need to specify your version of gcc 4.5/4.6 via the GCC variable like
+this. For example, if the version of gcc you want to load the plugin into is
+/usr/local/gcc-4.6/bin/gcc, then you should do
+ GCC=/usr/local/gcc-4.6/bin/gcc make
+If you don't set the GCC variable then by default "gcc" is used, so you
+can just do
+ make
+if you plan to use the plugin with whatever version of gcc is in your path.
+
The plugin makes use of various gcc headers that are usually shipped with gcc.
However some linux distributions, for example debian and ubuntu, have split the
headers out of gcc into a separate package. So if you get errors along the
@@ -34,16 +45,9 @@
"tree.h" are installed. On debian the package containing headers is called
gcc-4.5-plugin-dev or gcc-4.6-plugin-dev.
-The plugin needs to know about the version of gcc it will be loaded into, which
-is why you need to specify your version of gcc 4.5/4.6 via the GCC variable like
-this. If you don't set the GCC variable then by default "gcc" is used, so you
-can just do
- make
-to build if your system gcc is gcc version 4.5 or 4.6.
-
The plugin is compiled using the system compiler, and not with the gcc specified
in the GCC variable (which wouldn't work if it is a cross compiler). If you
-want to also compile the plugin with your copy gcc 4.5/4.6, you can do:
+want to also compile the plugin with your copy of gcc 4.5/4.6, you can do:
CXX=PATH_TO_INSTALLED_GCC GCC=PATH_TO_INSTALLED_GCC make
The build system runs the "llvm-config" program (which should be in your path if
Modified: dragonegg/trunk/www/index.html
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/www/index.html?rev=163129&r1=163128&r2=163129&view=diff
==============================================================================
--- dragonegg/trunk/www/index.html (original)
+++ dragonegg/trunk/www/index.html Tue Sep 4 03:15:04 2012
@@ -329,7 +329,7 @@
copy). On debian and ubuntu you need to install the corresponding plugin-dev
package (gcc-4.5-plugin-dev, gcc-4.6-plugin-dev, etc).</p>
<p>Doing</p>
- <pre> GCC=path_to_just_installed_gcc make</pre>
+ <pre> GCC=place_you_installed_gcc/bin/gcc make</pre>
<p>in the <tt>dragonegg</tt> directory should then build <tt>dragonegg.so</tt>.
See the <tt>README</tt> file for more details.</p>
<p>To use <tt>dragonegg.so</tt>, compile something with your just-installed
More information about the llvm-commits
mailing list