This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Removes CMake work-arounds.
ClosedPublic

Authored by Mordante on Jun 4 2023, 8:45 AM.

Details

Summary

CMake older than 3.20.0 is no longer supported.
This removes work-arounds for no longer supported versions.

Diff Detail

Event Timeline

Mordante created this revision.Jun 4 2023, 8:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2023, 8:45 AM
Mordante requested review of this revision.Jun 4 2023, 8:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2023, 8:45 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
phosek accepted this revision.Jun 5 2023, 10:58 AM

LGTM

This revision is now accepted and ready to land.Jun 5 2023, 10:58 AM
h-vetinari added a subscriber: h-vetinari.

In compiler-rt there's still a work-around marked TODO(dliew) here

In compiler-rt there's still a work-around marked TODO(dliew) here

I feel changing this is out of scope. I agree it would be nice to fix this, but I will not pursue it. Feel free to provide patches for these improvements.

This revision was automatically updated to reflect the committed changes.

I think maybe some path for Mac got missed. We're seeing the following CMake error in our CI:

-- Got ld supported ARCHES: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
-- Toolchain supported arches: armv6;armv7;armv7s;arm64;arm64e;arm64_32;i386;x86_64;x86_64h;armv6m;armv7k;armv7m;armv7em
-- Using cached valid architectures for osx.
-- OSX supported arches: arm64;x86_64
-- Compiler-RT supported architectures: arm64;x86_64
CMake Error at /opt/s/w/ir/x/w/llvm-llvm-project/compiler-rt/lib/xray/CMakeLists.txt:174 (add_asm_sources):
  Unknown CMake command "add_asm_sources".


-- Configuring incomplete, errors occurred!

you can find the bot here: https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-mac-xarm64/b8778931818655578401/overview

I think maybe some path for Mac got missed. We're seeing the following CMake error in our CI:

-- Got ld supported ARCHES: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
-- Toolchain supported arches: armv6;armv7;armv7s;arm64;arm64e;arm64_32;i386;x86_64;x86_64h;armv6m;armv7k;armv7m;armv7em
-- Using cached valid architectures for osx.
-- OSX supported arches: arm64;x86_64
-- Compiler-RT supported architectures: arm64;x86_64
CMake Error at /opt/s/w/ir/x/w/llvm-llvm-project/compiler-rt/lib/xray/CMakeLists.txt:174 (add_asm_sources):
  Unknown CMake command "add_asm_sources".


-- Configuring incomplete, errors occurred!

you can find the bot here: https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-mac-xarm64/b8778931818655578401/overview

Thanks! I just pushed a fix.