<div dir="ltr">Currently -fvectorize and friends inject themselves into the BackendArgs so that they enable the command line flags when the command line parser runs in BackendUtil.<div><br></div><div>This is incompatible with folks trying to use clang as a library to build more than one translation unit (as flags are global, and you may only specify -fvectorize once). Here's an example of the symptoms of the problem:</div>

<div>  <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030264.html">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030264.html</a><br></div><div><br></div><div>The attached patch creates new CC1 options and wires those up to the existing flags in the PMBuilder (not the global flags). Please review!</div>

<div><br></div><div>Nick</div><div><br></div></div>