[haiku-bugs] [Haiku] #10280: -Werror broken for kernel rules

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Thu, 05 Dec 2013 02:51:56 -0000

#10280: -Werror broken for kernel rules
--------------------------+------------------------------
 Reporter:  bonefish      |        Owner:  bonefish
     Type:  bug           |       Status:  new
 Priority:  normal        |    Milestone:  R1
Component:  Build System  |      Version:  R1/Development
 Keywords:                |   Blocked By:
 Blocking:                |  Has a Patch:  0
 Platform:  All           |
--------------------------+------------------------------
 With the introduction of secondary architecture support in the PM build
 system the kernel files are no longer built with `-Werror`. Formerly we
 appended `-Werror` and related flags to the `CCFLAGS` config variable (via
 the private rule `EnableWerror`). Now we add them to
 `TARGET_WARNING_CCFLAGS_<arch>`, which, however, is overridden in
 `SetupKernel` with the value of the global
 `TARGET_KERNEL_WARNING_CCFLAGS`.

 `CCFLAGS` was no longer suitable since it is not target architecture
 specific while the `-Werror` flags are. ATM there isn't any alternative
 config variable that can be used instead.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10280>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: