[all-commits] [llvm/llvm-project] 75ec24: [HLSL][clang][Driver] Fix error when using the opt...

Xiang Li via All-commits all-commits at lists.llvm.org
Mon Jul 1 10:44:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75ec24e875762f038bf490d6e3fa5d4743d7afd1
      https://github.com/llvm/llvm-project/commit/75ec24e875762f038bf490d6e3fa5d4743d7afd1
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/dxc_fcgl.hlsl

  Log Message:
  -----------
  [HLSL][clang][Driver] Fix error when using the option -fcgl in --driver-mode=dxc. (#97001)

When -fcgl is set in --driver-mode=dxc, both -S and -emit-llvm are
currently enabled.

This results in the following error:
```
  error: '-S' action ignored; '-emit-llvm' action specified previously.
```
This change fixes the issue by not rendering -S in RenderHLSLOptions.

Additionally, a test has been added to ensure that enabling -fcgl does
not trigger any diagnostics

Fixes #97296



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list