We don't want the regular linker flags for these invocations, since
we're not compiling to the target machine anyway. This fixes things like
'/machine:x64' being unknown when invoked under Windows.
Depends on: D77163
Differential D77164
libclc: Don't pass linker flags to CLC/LLAsm daniels on Mar 31 2020, 12:30 PM. Authored by
Details
We don't want the regular linker flags for these invocations, since Depends on: D77163
Diff Detail
Event TimelineComment Actions Have you tried clearing the target link flags using set_target_properties( ... LINK_FLAGS ... )? Comment Actions I tried, but the manual says that a) you must use STATIC_LIBRARY_FLAGS for static libraries, and b) you must use STATIC_LIBRARY_OPTIONS in preference to the former, as it sets rather than appends. Nevertheless, neither of them actually worked for me, and both continued to pass the machine linker flags. |