Skip to content

Commit

Permalink
SWDEV-435276 - Use -mllvm=<option> syntax rather than -mllvm <option>…
Browse files Browse the repository at this point in the history
… 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: Id6cfdad1f94b735813271f251cae9005d6799198
  • Loading branch information
searlmc1 committed Dec 13, 2023
1 parent 42e9e4a commit e193b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hip-lang-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ set_target_properties(hip-lang::device PROPERTIES
)

set_property(TARGET hip-lang::device APPEND PROPERTY
INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:HIP>:SHELL:-mllvm;-amdgpu-early-inline-all=true;-mllvm;-amdgpu-function-calls=false>"
INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:HIP>:SHELL:-mllvm=-amdgpu-early-inline-all=true;-mllvm=-amdgpu-function-calls=false>"
)

set_property(TARGET hip-lang::device APPEND PROPERTY
Expand Down

0 comments on commit e193b7c

Please sign in to comment.