Fix handling of codegen flags.

The -C was not being added, so this was generating targets which
wouldn't build. Also sort them to match cargo2android.py.

Bug: 293289578
Test: Ran on regex-automata crate.
Change-Id: I490ffd743a65ac7261985439829ca64ecb4f53f2
3 files changed