Compiler-rt tests check compile and link

when building compiler-rt the line above checks the host’s compiler compile and link.
my question is: if I am cross compiling, these tests will fail. I am building the compiler rt for my target, but I need the compiler rt to pass the tests. this is circular dependency.

I have now added this:
set(TEST_COMPILE_ONLY ON)
before line 241, link above.

has anyone else run into this? how have they worked around this?