zephyr/cmake/toolchain
Marc Herbert 2371679528 Revert "toolchain/zephyr: invoke ar with -D for deterministic .a files"
This reverts commit b4078c557d / zephyrproject-rtos/zephyr#17495

This revert is needed for two reasons:

1. As reported by Lawrence King at
   https://lists.zephyrproject.org/g/users/message/1566
this breaks incremental builds with ninja:

  cd sample/hello_world
  west build -b qemu_x86
  touch src/main.c
  west build -b qemu_x86

  hello_world/build/../src/main.c:11: multiple definition of main';
  app/libapp.a(main.c.obj):samples/hello_world/build/../src/main.c:11:
  first defined here
  collect2: error: ld returned 1 exit status

  ar tf build/app/libapp.a
   main.c.obj
   main.c.obj

This does NOT break incremental builds with GNU Make, not sure why not.

2. Less urgently, I finally got someone from the CMake team to help me
and point me at an alternative solution that doesn't rely on CMake
internals: https://gitlab.kitware.com/cmake/cmake/issues/19474
I was about to try it when Lawrence reported the regression above.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2019-07-16 10:27:37 +02:00
..
cross-compile docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
espressif cmake: Toolchain abstraction: introduce LINKER variable 2019-04-28 12:52:18 -04:00
gnuarmemb cmake: Toolchain abstraction: introduce LINKER variable 2019-04-28 12:52:18 -04:00
host cmake: Toolchain abstraction: introduce LINKER variable 2019-04-28 12:52:18 -04:00
issm cmake: Toolchain abstraction: introduce LINKER variable 2019-04-28 12:52:18 -04:00
llvm cmake: llvm: Invalidate toolchain capability cache 2019-04-30 09:33:54 -04:00
xcc toolchain/xcc: augment compiler provided macros to match gcc and clang 2019-07-03 06:09:16 -04:00
xtools cmake: use sdk-ng built toolchain for x86_64 2019-06-27 16:08:32 -04:00
zephyr Revert "toolchain/zephyr: invoke ar with -D for deterministic .a files" 2019-07-16 10:27:37 +02:00