Commit f4a4fb9a authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #536769] Add -Xcompiler flag for adding arguments and switches for

    the compiler
parent 1142de3f
......@@ -188,6 +188,8 @@ def read_setup_file (filename):
append_next_word = ext.runtime_library_dirs
elif word == "-Xlinker":
append_next_word = ext.extra_link_args
elif word == "-Xcompiler":
append_next_word = ext.extra_compile_args
elif switch == "-u":
ext.extra_link_args.append(word)
if not value:
......
......@@ -159,6 +159,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
# OSX/OSXS/Darwin framework link cmd
;;
-[IDUCfF]*) cpps="$cpps $arg";;
-Xcompiler) skip=cpps;;
-Xlinker) libs="$libs $arg"; skip=libs;;
-rpath) libs="$libs $arg"; skip=libs;;
--rpath) libs="$libs $arg"; skip=libs;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment