18 lines
409 B
Diff
18 lines
409 B
Diff
diff --git a/tools/cpp/osx_cc_wrapper.sh.tpl b/tools/cpp/osx_cc_wrapper.sh.tpl
|
|
index 8264090c29..b7b9e8537a 100644
|
|
--- a/tools/cpp/osx_cc_wrapper.sh.tpl
|
|
+++ b/tools/cpp/osx_cc_wrapper.sh.tpl
|
|
@@ -64,7 +64,11 @@ done
|
|
%{env}
|
|
|
|
# Call the C++ compiler
|
|
-%{cc} "$@"
|
|
+if [[ ${*: -1} = "" ]]; then
|
|
+ %{cc} "${@:0:$#}"
|
|
+else
|
|
+ %{cc} "$@"
|
|
+fi
|
|
|
|
function get_library_path() {
|
|
for libdir in ${LIB_DIRS}; do
|