Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e28902f7 authored by Gwendal Grignou's avatar Gwendal Grignou
Browse files

gd/parser: Fix flaky compilation



When compiling net-wireless/floss, flex_source sometimes complains include
file generated by bison_source (language_y.h) is missing.

Address the issue by enforcing dependency of bison on flex.

Bug: 211658554
Tag: #stability
Test: git am changes in chromeos aosp/ packages/modules/Bluetooth/local
Compile floss with USE="-floss_upstream -cros-debug" emerge-dedede floss
Check changes is taken into account and does not break compilation.

Signed-off-by: default avatarGwendal Grignou <gwendal@google.com>
Change-Id: I52f4752268a48640acad9bb8e5da2bbeaced102a
parent c090ca4c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -78,6 +78,10 @@ executable("bluetooth_packetgen") {

flex_source("pktlexer") {
  sources = [ "language_l.ll" ]

  deps = [
    ":pktparser",
  ]
  configs = [ ":pktgen_configs" ]
}

+3 −0
Original line number Diff line number Diff line
@@ -55,6 +55,9 @@ template("flex_source") {
    all_dependent_configs = [ ":${all_dependent_config_name}" ]
    deps = [ ":${action_name}" ]

    if (defined(invoker.deps)) {
      deps += invoker.deps
    }
    if (defined(invoker.configs)) {
      configs += invoker.configs
    }