Skip to content

Commit eefd1c6

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents dbbdd67 + c798c1e commit eefd1c6

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

include/swift/ABI/Task.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,16 @@ class AsyncTask : public HeapObject, public Job {
343343
};
344344

345345
struct GroupStatus {
346-
static const unsigned long long maskReady = 0x00FFFFF0000000000ll;
347-
static const unsigned long long oneReadyTask = 0x00000010000000000ll;
346+
static const uint64_t maskReady = 0x00FFFFF0000000000ll;
347+
static const uint64_t oneReadyTask = 0x00000010000000000ll;
348348

349-
static const unsigned long long maskPending = 0x0000000FFFFF00000ll;
350-
static const unsigned long long onePendingTask = 0x00000000000100000ll;
349+
static const uint64_t maskPending = 0x0000000FFFFF00000ll;
350+
static const uint64_t onePendingTask = 0x00000000000100000ll;
351351

352-
static const unsigned long long maskWaiting = 0x000000000000FFFFFll;
353-
static const unsigned long long oneWaitingTask = 0x00000000000000001ll;
352+
static const uint64_t maskWaiting = 0x000000000000FFFFFll;
353+
static const uint64_t oneWaitingTask = 0x00000000000000001ll;
354354

355-
unsigned long long status;
355+
uint64_t status;
356356

357357
unsigned int readyTasks() {
358358
return (status & maskReady) >> 40;
@@ -436,7 +436,7 @@ class AsyncTask : public HeapObject, public Job {
436436
mutable std::mutex mutex;
437437

438438
/// Used for queue management, counting number of waiting and ready tasks
439-
std::atomic<unsigned long long> status;
439+
std::atomic<uint64_t> status;
440440

441441
/// Queue containing completed tasks offered into this channel.
442442
///

unittests/runtime/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
22
("${SWIFT_HOST_VARIANT_ARCH}" STREQUAL "${SWIFT_PRIMARY_VARIANT_ARCH}"))
33

44
if("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
5-
# Do nothing
5+
if(NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
6+
set(CMAKE_CXX_COMPILER "${SWIFT_NATIVE_CLANG_TOOLS_PATH}/clang++")
7+
set(CMAKE_C_COMPILER "${SWIFT_NATIVE_CLANG_TOOLS_PATH}/clang")
8+
endif()
69
elseif(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
710
if(NOT "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
811
message(FATAL_ERROR "Building the swift runtime is not supported with ${CMAKE_C_COMPILER_ID}. Use the just-built clang instead.")

0 commit comments

Comments
 (0)