[llvm-bugs] [Bug 52242] New: set default values for -march and -mtune

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 20 12:32:57 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52242

            Bug ID: 52242
           Summary: set default values for -march and -mtune
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: chinoune.mehdi at hotmail.com
                CC: llvm-bugs at lists.llvm.org

gcc has configuration options that set default values [1] for -march and
-mtune.

It would be useful to add an equivalent one to Clang.
I need this to setup a developement environnement where clang default to
-march=-x86-64-v3

[1]
https://gcc.gnu.org/install/configure.html

--with-schedule=cpu
--with-arch=cpu
--with-arch-32=cpu
--with-arch-64=cpu
--with-tune=cpu
--with-tune-32=cpu
--with-tune-64=cpu
--with-abi=abi
--with-fpu=type
--with-float=type
These configure options provide default values for the -mschedule=, -march=,
-mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As
with --with-cpu, which switches will be accepted and acceptable values of the
arguments depend on the target.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211020/1842e5c2/attachment.html>


More information about the llvm-bugs mailing list