lets not forget about c++!
[oota-llvm.git] / docs / GoldPlugin.html
index 845ea1cde508ca707094f07bad5136f9cbf8b23f..6be5277efd163efb8d95d1659fecac33d6173259 100644 (file)
@@ -152,6 +152,7 @@ $ llvm-gcc -use-gold-plugin a.o b.o -o main # <-- link with LLVMgold plugin
     binutils):
     <pre class="doc_code">
 export CC="$PREFIX/bin/llvm-gcc -use-gold-plugin"
+export CXX="$PREFIX/bin/llvm-g++ -use-gold-plugin"
 export AR="$PREFIX/bin/ar --plugin libLLVMgold.so"
 export NM="$PREFIX/bin/nm --plugin libLLVMgold.so"
 export RANLIB=/bin/true #ranlib is not needed, and doesn't support .bc files in .a