[all-commits] [llvm/llvm-project] c00e5c: [RISCV] Set triple based on -march flag

Simon Cook via All-commits all-commits at lists.llvm.org
Mon Nov 18 02:54:29 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c00e5cf29d49e51701b00382a3f41a4dfe1c0c0f
      https://github.com/llvm/llvm-project/commit/c00e5cf29d49e51701b00382a3f41a4dfe1c0c0f
  Author: Simon Cook <simon.cook at embecosm.com>
  Date:   2019-11-18 (Mon, 18 Nov 2019)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/riscv-arch.c

  Log Message:
  -----------
  [RISCV] Set triple based on -march flag

For RISC-V the value provided to -march should determine whether to
compile for 32- or 64-bit RISC-V irrespective of the target provided to
the Clang driver. This adds a test for this flag for RISC-V and sets the
Target architecture correctly in these cases.

Differential Revision: https://reviews.llvm.org/D54214




More information about the All-commits mailing list