diff options
author | Dan Willemsen <dwillemsen@google.com> | 2020-07-17 20:11:06 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2020-07-20 18:02:52 -0700 |
commit | b8af73e4b3b8c7fcb68df780c9f0e0121ad886e2 (patch) | |
tree | 9ecd1042be4d3f980b75154072bfc88736a6800a | |
parent | 3b24cfa05d36ee2888dccedd341a9582a53842f2 (diff) | |
download | flex-b8af73e4b3b8c7fcb68df780c9f0e0121ad886e2.tar.gz |
Fix dependency loop with flex
I'm adding a prebuilt_build_tool module for flex so that it can be used
by genrules. But since flex uses flex during it's own build, and
prebuilt_build_tool can't handle the loop, explicitly change the name to
"flex_bin", and use stem so that the final binary is still called flex.
Bug: 128690776
Test: treehugger
Change-Id: Ibcb257e7b39dd23b203605ae163980ca854e95b9
-rw-r--r-- | src/Android.bp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Android.bp b/src/Android.bp index e3b3132..d916fb0 100644 --- a/src/Android.bp +++ b/src/Android.bp @@ -1,5 +1,9 @@ cc_binary_host { - name: "flex", + // Not named "flex" because we need the flex module to build scan.l below, + // and we don't support dependency loops. The stem renames this back to + // 'flex' in the installed path + name: "flex_bin", + stem: "flex", stl: "none", srcs: [ |