define a real module and use  local cc gen syscalls sh  gen syscalls sh will then be invoked as though it was clang  with all the correct build flags  example in bionic  aosp master bionic tests android mk q file bionic local cxx sq package aosp master type cs l 