title: Optimizing a single file in a premake-generated VS solution
body: <p>I have a project which contains a rather performance-critical file, and to make debugging of the rest of the program feasible, it has to be compiled with at least some optimizations, in particular inlining. I used to do this manually in VS2010, but now I would like to achieve the same in my VS2015 projects generated by premake5.</p>
  
  <p>I understand that I should have a <code>configuration</code> block for this file somewhat looking like this:</p>
  
  <pre><code>filter { "configurations:Debug*" }
    configuration "critical_file.cpp"
      -- Optimization settings go here
    configuration {}
  filter {}
  </code></pre>
  
  <p>I have tried various things: <code>optimize "Speed"</code> or <code>optimize "Full"</code> does not work because VS2015 assumes <strong>/RTC1</strong>, which is incompatible with <strong>/O2</strong> or <strong>/O4</strong>:</p>
  
  <pre><code>7&gt;cl : Command line error D8016: '/Ox' and '/RTC1' command-line options are incompatible
  </code></pre>
  
  <p>Adding <code>flags { "NoRuntimeChecks" }</code> in this block makes no difference.</p>
  
  <p>I also tried adding <code>inlining "auto"</code> instead to at least enable function inlining, but that didn't generate any specific configuration for this file.</p>
  
  <p>I guess what I want in the end looks somewhat like this:</p>
  
  <pre><code>&lt;ClCompile Include="critical_file.cpp"&gt;
    &lt;Optimization Condition="'$(Configuration)'=='Debug'"&gt;Full&lt;/Optimization&gt;
    &lt;BasicRuntimeChecks Condition="'$(Configuration)'=='Debug'"&gt;&lt;/BasicRuntimeChecks&gt;
  &lt;/ClCompile&gt;
  </code></pre>
  
  <p>Is this possible with premake at all, or will it need to be patched to automatically disable basic run-time checks for any configuration or files with optimization?</p>