aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2020-07-17 20:11:06 -0700
committerDan Willemsen <dwillemsen@google.com>2020-08-06 16:16:09 -0700
commit90a4022e091f39d3534a30bbb9d02986f2f5ad9b (patch)
tree9ecd1042be4d3f980b75154072bfc88736a6800a
parent4f66ca349520a6a7f69fadbbcf97aa678bf57658 (diff)
downloadflex-emu-32-dev.tar.gz
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: I6a818cbd297f951552d2890374787eb40c074463
-rw-r--r--src/Android.bp6
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: [