arch: use cross_compiling to check whether it is a cross build or not