summaryrefslogtreecommitdiff
path: root/templates/cdt6platforms.mpt
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>2010-07-23 21:50:04 +0000
committerChris Cleeland <chris.cleeland@gmail.com>2010-07-23 21:50:04 +0000
commit7db7f7f2591f95247d60ba3c52a724723ce1bec3 (patch)
tree17f2f1d58abff54db256a1d9c5b9ac0624293ffe /templates/cdt6platforms.mpt
parent0b3fcc5ef4677f0ec63ef49b8cad9442594e2778 (diff)
downloadMPC-7db7f7f2591f95247d60ba3c52a724723ce1bec3.tar.gz
Merge out cross-compile and PIC changes from branch. Still experimental.
Diffstat (limited to 'templates/cdt6platforms.mpt')
-rw-r--r--templates/cdt6platforms.mpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/cdt6platforms.mpt b/templates/cdt6platforms.mpt
index c8c93f29..670af60a 100644
--- a/templates/cdt6platforms.mpt
+++ b/templates/cdt6platforms.mpt
@@ -48,6 +48,22 @@ linux {
platform_libs += rt dl
}
+// cellppu is an example for how to do a cross-compile (or, really, any compile using
+// tools with non-standard names).
+cellppu {
+ as = ppu-as
+ ar = ppu-ar
+ cc = ppu-gcc
+ // can set ccld to name of C Linker if different from cc
+ cxx = ppu-g++
+ // can set cxxld to name of C++ Linker if different from cxx
+
+ binary_parsers = org.eclipse.cdt.core.ELF
+ error_parsers = org.eclipse.cdt.core.GASErrorParser org.eclipse.cdt.core.GLDErrorParser org.eclipse.cdt.core.GCCErrorParser
+ threadflags = -pthread
+ platform_libs += rt dl
+}
+
// This scope serves as an example of a custom platform. On 64-bit linux,
// you can compile a 32-bit binary by passing -m32 to gcc. Using this custom
// platform, MPC can generate CDT projects that have "Build Configurations"