Skip to content

Commit

Permalink
{eloquent} fmilibrary: lower the error from ninja about duplicated ru…
Browse files Browse the repository at this point in the history
…les to just an warning

* we should eventually find from where the other rules are being generated
  but to unblock warrior quickly lets just lower it back to warning.

* I've checked fmilibrary build with thud and these messages are already there,
  but as warnings, because thud uses ninja-1.8.2

* ninja-1.9.0 changed the default to error in:
  ninja-build/ninja@42eefc8
  resulting in:
  ninja: error: build.ninja:1652: multiple rules generate ExpatEx/libexpat.a [-w dupbuild=err]

  changing it to warning produces:
  ninja: warning: multiple rules generate ExpatEx/libexpat.a. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]

Signed-off-by: Martin Jansa <[email protected]>
  • Loading branch information
shr-project committed Jan 9, 2020
1 parent 481307d commit e7c4122
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019 LG Electronics, Inc.
# Copyright (c) 2019-2020 LG Electronics, Inc.

DESCRIPTION = "Extensible Modelica-based platform for optimization, simulation and analysis of complex dynamic systems."
HOMEPAGE = "https://jmodelica.org/"
Expand Down Expand Up @@ -34,3 +34,9 @@ FILES_SOLIBSDEV = ""
FILES_${PN} += " \
${libdir}/lib*${SOLIBSDEV} \
"

# it generates duplicate rules for ExpatEx/libexpat.a and newer ninja-1.9.0 fails because of that
# NOTE: VERBOSE=1 cmake --build fmilibrary/2.0.3-r0/build --target all -- -j 20
# ninja: error: build.ninja:1652: multiple rules generate ExpatEx/libexpat.a [-w dupbuild=err]
EXTRA_OECMAKE_BUILD_append_task-compile = "-w dupbuild=warn"
EXTRA_OECMAKE_BUILD_append_task-install = "-w dupbuild=warn"

0 comments on commit e7c4122

Please sign in to comment.