diff options
author | Dan Willemsen <dwillemsen@google.com> | 2020-01-27 18:38:41 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2020-01-27 18:38:41 -0800 |
commit | 3b24cfa05d36ee2888dccedd341a9582a53842f2 (patch) | |
tree | ccbb9aff232170eb4b30d73abdfe7938a69091e8 | |
parent | c6dfaab8f3598d63ca235d76dc5529a80e4c3bcb (diff) | |
download | flex-3b24cfa05d36ee2888dccedd341a9582a53842f2.tar.gz |
Use the built m4
m4 is no longer on the $PATH, which made this create an invalid C file.
Test: Try an Android build with the generated flex binary
Change-Id: I9d50d5e63d7d6ed7b8c50cfac5233a073edaa592
-rw-r--r-- | src/Android.bp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Android.bp b/src/Android.bp index 8184a67..e3b3132 100644 --- a/src/Android.bp +++ b/src/Android.bp @@ -57,13 +57,14 @@ cc_binary_host { genrule { name: "flex_skel.c", // This is lightly modified from Makefile.am - cmd: "/bin/bash $(location mkskel.sh) `dirname $(in)` m4 2.6.4 >$(out)", + cmd: "/bin/bash $(location mkskel.sh) `dirname $(in)` $(location m4) 2.6.4 >$(out)", tool_files: [ "mkskel.sh", "flexint.h", "tables_shared.c", "tables_shared.h", ], + tools: ["m4"], srcs: [ "flex.skl", ], |