Author: Nathan Gauër Date: 2025-12-02T16:35:25+01:00 New Revision: 734a912d0f025559fcf76bde9aaaeb0383c1625a
URL: https://github.com/llvm/llvm-project/commit/734a912d0f025559fcf76bde9aaaeb0383c1625a DIFF: https://github.com/llvm/llvm-project/commit/734a912d0f025559fcf76bde9aaaeb0383c1625a.diff LOG: [Clang][HLSL] Fix invalid flag passed by the driver (#170300) The test were using the DXC driver in Clang, which adds the `--spirv-ext=` option. Turns out some buildbots are built without this flag support, meaning any test using this driver would fail with an 'unknown command line argument' error. Added: Modified: clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location-2.hlsl clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location.hlsl Removed: ################################################################################ diff --git a/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location-2.hlsl b/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location-2.hlsl index 3de85863883ad..7b494f5a9cbe6 100644 --- a/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location-2.hlsl +++ b/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location-2.hlsl @@ -1,4 +1,4 @@ -// RUN: %clang --driver-mode=dxc %s -T ps_6_8 -E main1 -O3 -spirv -Xclang -verify -Xclang -verify-ignore-unexpected=note +// RUN: %clang_cc1 -finclude-default-header -triple spirv-pc-vulkan1.3-pixel %s -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note // The following code is not legal: both semantics A and B will be lowered // into a Location decoration. And mixing implicit and explicit Location diff --git a/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location.hlsl b/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location.hlsl index 8f5b6e48b48e9..74f110c286cae 100644 --- a/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location.hlsl +++ b/clang/test/SemaHLSL/Semantics/semantic.explicit-mix-location.hlsl @@ -1,4 +1,4 @@ -// RUN: %clang --driver-mode=dxc %s -T ps_6_8 -E main1 -O3 -spirv -Xclang -verify -Xclang -verify-ignore-unexpected=note +// RUN: %clang_cc1 -finclude-default-header -triple spirv-pc-vulkan1.3-pixel %s -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note // The following code is not legal: both semantics A and B will be lowered // into a Location decoration. And mixing implicit and explicit Location _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
