[PATCH] D58578: [CMake] Fix the value of `config.target_cflags` for non-macOS Apple platforms.

Julie Hockett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 10:53:57 PDT 2019


juliehockett added a comment.

In D58578#1480711 <https://reviews.llvm.org/D58578#1480711>, @delcypher wrote:

> In D58578#1480691 <https://reviews.llvm.org/D58578#1480691>, @juliehockett wrote:
>
> > This patch has broken our bots -- when it's building the osx host runtime, it's now triggering an assert on the tsan arm64 test case that wasn't being triggered before. Would you be able to take a look?
> >
> > Error:
> >
> >   CMake Error at /b/s/w/ir/k/llvm-project/compiler-rt/cmake/config-ix.cmake:177 (message):
> >     Unsupported architecture: arm64
> >   Call Stack (most recent call first):
> >     /b/s/w/ir/k/llvm-project/compiler-rt/cmake/config-ix.cmake:216 (get_target_flags_for_arch)
> >     /b/s/w/ir/k/llvm-project/compiler-rt/test/tsan/CMakeLists.txt:78 (get_test_cflags_for_apple_platform)
> >
> >
> > Full log: https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket.appspot.com/8915104112618242800/+/steps/clang/0/steps/build/0/stdout
>
>
> Sorry about this. I'll revert the patch now and I'll take a look at re-landing it when time permits.
>
> Could you clarify what you mean by "assert on the tsan arm64 test case", all I see in the log is a CMake error, relating to arm64. I don't see any lit tests being executed.


Sure -- to clarify, it's not a test failure, it's a build one. The error was triggered during the CMake configuration step for host runtimes, where we have `OSX supported arches: x86_64` only. `test/tsan/CMakeLists.txt:78` now calls into the new function on the arm64 case, which down the line triggers a CMake assert that arm64 is in the list of supported arches when it isn't.

Seems like prior to this change, the lit tests were being configured without doing any checks on that list of supported arches. I'm not as familiar with how this code is set up, so I can't really say if it's a problem with this patch or if this patch is exposing another bug. Thanks for taking a look!


Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58578/new/

https://reviews.llvm.org/D58578





More information about the llvm-commits mailing list