build with ninja is always rebuilding all sources

1,508 views
Skip to first unread message

Paweł Górka

unread,
Feb 26, 2015, 7:31:39 PM2/26/15
to ninja...@googlegroups.com
Hi,
I have an confusing problem with ninja build.
I have two projects build with ninja - cortex m3 target project and project with some gtest. In gtest project everything works fine. Unfortunatelly in cortex target ninja is rebuilding whole project all the time, even when nothing has changed.
I have no clue what can cause this problem. Im generating ninja files with cmake (-G Ninja). In project there are few c and cpp src files, startup wrote in assembler. I'am also building and linking two static libraries.

 When I'm using make probles does not exist. Could someone give me some hint?

Nico Weber

unread,
Feb 26, 2015, 7:32:45 PM2/26/15
to Paweł Górka, ninja-build
What does `ninja -d explain` say?

--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paweł Górka

unread,
Feb 27, 2015, 2:41:20 AM2/27/15
to Nico Weber, ninja-build
Hi,
Thanks for response. I switched to the newest version od ninja (1.5.3) and problem has dissapeared.
Ninja -d says that a lot of header files (external efm32 library mostly) are dirty.
--
Pozdrawiam
Paweł Górka

Nico Weber

unread,
Feb 27, 2015, 11:07:12 AM2/27/15
to Paweł Górka, ninja-build
Are you using Windows? If so, then you probably ran into the slash/backslash canonicalization problem that was fixed in 1.5.3.
Reply all
Reply to author
Forward
0 new messages