[cmake] enable clang-cl and WoA builds #348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "liz-clang-cl-cmake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Compilation and CMake fixes for both Windows on ARM and clang-cl, meaning Windows can now be built on both MSVC and clang on both amd64 and aarch64.
Compiling on clang is dramatically faster so this should be useful for CI.
a640bbee41 (diff-6d6e3ece8559867a9a1a8a1a466cdddde98a780f509364c57c1df87543c5ba8d)
need this as well@ -0,0 +1,24 @@
diff -ruN a/libs/cobalt/include/boost/cobalt/concepts.hpp b/libs/cobalt/include/boost/cobalt/concepts.hpp
Need to add this to cpmfile as like
"patches": [ "0001-clang-cl.patch" ]
oops
e24e4a1309
toadf55feddb
adf55feddb
tod194af1400
New commits pushed, approval review dismissed automatically according to repository settings
c8cc69d65b
tod6f6447424
78b3397543
toa796e9e2d4
24d903aeb4
tocbc6345f64
WIP: [cmake] port torzu cmake build stuff for clang-clto [cmake] enable clang-cl and WoA buildsMaybe the (std::min)/(std::max) changes should be merged on a separated PR to reduce the size of this PR?
@DraVee wrote in #348 (comment):
They're required for clang-cl to build
@ -59,3 +145,3 @@
cmake_dependent_option(ENABLE_LIBUSB "Enable the use of LibUSB" ON "NOT ANDROID" OFF)
option(ENABLE_OPENGL "Enable OpenGL" ON)
cmake_dependent_option(ENABLE_OPENGL "Enable OpenGL" ON "NOT WIN32 AND NOT ARCHITECTURE_arm64" OFF)
Wait this is wrong
@ -342,2 +380,4 @@
# boost
set(BOOST_INCLUDE_LIBRARIES algorithm icl pool container heap asio headers process filesystem crc variant)
# TODO(crueter): Use the tar.gz or tar.xz ones since they use POSIX endings and
Remove
@ -751,0 +808,4 @@
message(FATAL_ERROR "clang-cl: Unsupported architecture ${ARCHITECTURE}")
endif()
AddJsonPackage(llvm-mingw)
Move to my git
@ -592,6 +592,7 @@ function(cpm_add_patches)
list(APPEND temp_list "&&")
endif()
# Add the patch command to the list
# use binary because DOS SUCKS
Remove
@ -16,3 +16,2 @@
# CMake seems to only define _DEBUG on Windows
set_property(DIRECTORY APPEND PROPERTY
COMPILE_DEFINITIONS $<$<CONFIG:Debug>:_DEBUG> $<$<NOT:$<CONFIG:Debug>>:NDEBUG>)
if (NOT (MSVC AND CXX_CLANG))
Remove
@crueter wrote in #348 (comment):
Maybe I wrote it wrong (my poor english), I mean, merge the changes related to parentheses first (since it's a big change) and after that rebase this PR
@DraVee wrote in #348 (comment):
Too much effort imo, it's easy to review otherwise