1. Sep 01, 2023
  2. Aug 31, 2023
  3. Aug 30, 2023
  4. Aug 29, 2023
    • Amy Huang's avatar
      [llvm-rc] Continue to use Argv[0] to resolve executable path · da76a22a
      Amy Huang authored
      In internal google builds, MainExecPath doesn't go to the directory with `clang`.
      Fall back to using Argv0 if MainExecPath doesn't find any clangs.
      
      Differential Revision: https://reviews.llvm.org/D158901
      
      (cherry picked from commit e4eb8d97)
      da76a22a
    • Fangrui Song's avatar
      [Driver,X86] Ignore -mfpmath= for assembler input · ed108ee7
      Fangrui Song authored
      Some options are only claimed in AddX86TargetArgs/etc (called by
      Clang::RenderTargetOptions).
      For assembler input, `Add*TargetArgs` is not called. If an option is
      unclaimed, it either leads to a -Wunused-command-line-argument warning
      or an error (if `TargetSpecific` is set)
      ```
      // clang '-###' --target=x86_64 -mfpmath=sse -c a.s
      clang: error: unsupported option '-mfpmath=sse' for target 'x86_64'
      ```
      
      For -mfpmath=, it's actually claimed by RenderFloatingPointOptions,
      which should be moved to AddARMTargetArgs/AddX86TargetArgs later
      (non-AArch32-non-x86 targets give a frontend error).
      This change is localized and similar to D153691, for release/17.x
      backporting.
      
      Fix https://github.com/llvm/llvm-project/issues/65023
      
      Reviewed By: thesamesam
      
      Differential Revision: https://reviews.llvm.org/D159010
      
      (cherry picked from commit 081afa3d)
      ed108ee7