summaryrefslogtreecommitdiff
path: root/Jamrules.jam
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-25 21:50:46 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-25 21:50:46 +0000
commit77c9a23bfbf748c70b3ab33b06c5b188eaa3bd25 (patch)
treeef313561bef22abede0140b32be364b45fb4528a /Jamrules.jam
parentcd9bc5fa836fdf196dc65f7f75631f80849eed1e (diff)
Added build support for Sun C++
git-svn-id: http://pugixml.googlecode.com/svn/trunk@453 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamrules.jam')
-rw-r--r--Jamrules.jam37
1 files changed, 37 insertions, 0 deletions
diff --git a/Jamrules.jam b/Jamrules.jam
index 5837dda..bed6458 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -285,6 +285,43 @@ else if ( $(toolset:I=^bcc) )
{
}
}
+else if ( $(toolset:I=^suncc) )
+{
+ CCFLAGS += -D$(defines) ;
+
+ if ( $(configuration) = "debug" )
+ {
+ CCFLAGS += -D_DEBUG ;
+ }
+ else
+ {
+ CCFLAGS += -DNDEBUG -O ;
+ }
+
+ if ( PUGIXML_NO_EXCEPTIONS in $(defines) )
+ {
+ CCFLAGS += -noex ;
+ }
+
+ actions ObjectAction
+ {
+ sunCC $(CCFLAGS) +w -xwe -c -o $(<) $(>)
+ }
+
+ actions LibraryAction
+ {
+ ar rcs $(<) $(>)
+ }
+
+ actions LinkAction
+ {
+ sunCC $(>) -o $(<) $(LDFLAGS)
+ }
+
+ actions CoverageAction
+ {
+ }
+}
else
{
exit "Unknown toolset $(toolset)!" ;