<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63237>63237</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang: error: unsupported option '-mharden-sls=' for target 'x86_64-unknown-linux-gnu' when using CMAKE and Meson 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ms178
      </td>
    </tr>
</table>

<pre>
    As of clang version 17.0.0 (25d9fde22e609f8637f720220810429745707b76), I now see the error message when using `-marhden-sls=none` in my Cflags in various projects that use either CMAKE an Meson as build system. I haven't seen the same error when compiling the Kernel though. This seems to be a very recent change in behavior as in a previous build from yesterday, I haven't seen this and didn't change the way to build LLVM drastically either (for more build details, see: https://github.com/ms178/archpkgbuilds/blob/main/toolchain-experimental/llvm-bolt-scripts-master/build_stage2-prof-use-lto.bash).

For reference, I haven't seen this with (2150231652ff9f951a8c6381d7ad772cb1badb03) or (c8be70132de95281f73f0493480236cbbf703002).

CMAKE: 3.27.0.rc1.28.g3b0a90968e
Meson: 1.1.0.r147.d28d4ac4e

I haven't specified a target triplet in my LLVM build script and assume that the default (host) is used.

CPU: Intel Haswell-EP
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VE-v27YT_DT0ZSGBXP0_-PB-SYxfkATIoe01oMSlxIYiBZKyn799QdkPSVq0F8MSV6uZ0czIGM3siM6s-R9r3p_knhYfzmsUXX8avbqfXyJ4DZOVboYrhWi8A9GVvOTAsMdGDVoRIrV80H1bdbpDjsh7wWscurrpeDd2LcOB4Tv4CM7fIBJBWggoBB9gpRjlTHBbyMEejZuBtbxYZVgUuSLayKr3zjtiLQfjYL3DO23lHPPFVQbj9whb8H_SlCKkRSbYIwGZtFCAd19ePn0A6eALRe9ARhh3YxXEe0y0lvARFnklx7BLGZc7gEW5vqE7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