move cpu dep into compile_source function