Only show cross-compile warning when cross compiling.