diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-26 08:54:58 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-26 08:54:58 (GMT) |
commit | d90b15c96271d2afd45d649e3e22030004359d6e (patch) | |
tree | db773868e71fd51fb05e5160e1138bec8087eac9 /contrib/build-scripts/platform-id-mac.sh | |
parent | 93802c6eab1f798ccf57e863127aef6e7f9d073c (diff) | |
download | uscxml-d90b15c96271d2afd45d649e3e22030004359d6e.zip uscxml-d90b15c96271d2afd45d649e3e22030004359d6e.tar.gz uscxml-d90b15c96271d2afd45d649e3e22030004359d6e.tar.bz2 |
API changes with receiveEvent
- receiveEvent will deliver to external queue now per default
- switched Interpreter implementations to the new algorithm from spec
Diffstat (limited to 'contrib/build-scripts/platform-id-mac.sh')
-rwxr-xr-x | contrib/build-scripts/platform-id-mac.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/build-scripts/platform-id-mac.sh b/contrib/build-scripts/platform-id-mac.sh new file mode 100755 index 0000000..b105be3 --- /dev/null +++ b/contrib/build-scripts/platform-id-mac.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +function version { + echo "$@" | awk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; +} + +CMAKE_INFO=`cmake --system-information 2> /dev/null` + +CURRENT_OSX_VERSION=`echo "$CMAKE_INFO" |grep CURRENT_OSX_VERSION |grep -v _CURRENT_OSX_VERSION | awk '{print $2}' |sed 's/\"//g'` +CMAKE_CXX_COMPILER_ID=`echo "$CMAKE_INFO" |grep 'CMAKE_CXX_COMPILER_ID ' | awk '{print tolower($2)}' |sed 's/\"//g' | sed 's/apple//g'` +CPU=`uname -m` + +CPP_LIB="libc++" +if [ "$(version "10.9.0")" -gt "$(version "$CURRENT_OSX_VERSION")" ]; then + # pre-mavericks + CPP_LIB="libstdc++" +fi + +echo "darwin-${CPU}-${CMAKE_CXX_COMPILER_ID}-${CPP_LIB}" |