Skip to content

Commit

Permalink
[wimal] Use llvm tools instead of cctools
Browse files Browse the repository at this point in the history
  • Loading branch information
disigma committed Nov 27, 2024
1 parent c8c4559 commit 0a450f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion libuv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.4)
cmake_minimum_required(VERSION 3.10)
project(libuv LANGUAGES C)

cmake_policy(SET CMP0057 NEW) # Enable IN_LIST operator
Expand Down
18 changes: 10 additions & 8 deletions wimal/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ void Install::Run(const Context *context, std::vector<std::string> extraArgs) {
{"llvm-ranlib", "ranlib"},
{"llvm-readelf", "readelf"},
{"llvm-strip", "strip"},
{"llvm-otool", "otool"},
};
static const std::vector<link> cctools = {
{"llvm-ar", "ar"},
{"apple-install-name-tool", "install_name_tool"},
{"apple-ld", "ld"},
{"apple-lipo", "lipo"},
{"apple-nm", "nm"},
{"llvm-ranlib", "ranlib"},
{"llvm-readelf", "readelf"},
{"apple-strip", "strip"},
{"dsymutil", "dsymutil"},
{"lld", "ld"},
{"llvm-ar", "ar"},
{"llvm-install-name-tool", "install_name_tool"},
{"llvm-lipo", "lipo"},
{"llvm-nm", "nm"},
{"llvm-objcopy", "objcopy"},
{"llvm-objdump", "objdump"},
{"llvm-otool", "otool"},
{"llvm-ranlib", "ranlib"},
{"llvm-readelf", "readelf"},
{"llvm-strip", "strip"},
};
for (std::size_t i = 0; i < context->targets.size(); ++i) {
auto &target = context->targets[i];
Expand Down
2 changes: 1 addition & 1 deletion zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.4.4)
cmake_minimum_required(VERSION 3.10)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

project(zlib C)
Expand Down

0 comments on commit 0a450f1

Please sign in to comment.