Ecole change OSTYPE for target_platform
@@ -6,7 +6,7 @@ set -o nounset
# For using C++17 symbols on Apple before they are officially released
-if [[ "$OSTYPE" == "darwin"* ]]; then
+if [[ "$target_platform" == osx-* ]]; then
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
fi
