<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">I am trying to compile clang/llvm to target a specific CPU architecture (Intel Broadwell for instance). The intention here is that every time this specific compiler is run it will only ever generate code for that specific
 CPU.<br>
<br>
To achieve this I would like to "bake-in" some command line arguments into the built compiler (things like -march), but still allow the user to provide extra command line arguments that may override the "baked-in" defaults.<br>
<br>
GCC provides a spec file to achieve this, but I can't find something equivalent for clang/llvm. Does such a thing exist for clang/llvm?</p>
</div>
</body>
</html>