SWDEV-435276 - Use -mllvm=<option> syntax rather than -mllvm <option> syntax

Separating -mllvm from its option can cause, in rare circumstances,
the option to be dropped. Or the mllvm to be dropped. Either of which
can cause a compilation error. This issue was exposed investigating
SWDEV-435276

Change-Id: Ie665d49183b55a57c9b58619cad525e44f3be8a5


[ROCm/clr commit: 704d5df91b]
This commit is contained in:
Mark Searles
2023-12-11 16:06:52 -08:00
zatwierdzone przez Mark Searles
rodzic 5e1985996c
commit 8b94eaf0a6
@@ -130,7 +130,7 @@ endif()
get_property(compilePropIsSet TARGET hip::device PROPERTY INTERFACE_COMPILE_OPTIONS SET)
if (NOT compilePropIsSet AND HIP_CXX_COMPILER MATCHES ".*clang\\+\\+")
hip_add_interface_compile_flags(hip::device -mllvm -amdgpu-early-inline-all=true -mllvm -amdgpu-function-calls=false)
hip_add_interface_compile_flags(hip::device -mllvm=-amdgpu-early-inline-all=true -mllvm=-amdgpu-function-calls=false)
endif()
if (NOT compilePropIsSet)