mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
Arm64 related build fixes (#7319)
* Add missing include * Fix open call on arm64 * Bump up doctest to 2.4.8
This commit is contained in:
parent
07f49392ac
commit
8606923da2
@ -6,7 +6,7 @@ ExternalProject_Add(
|
||||
doctest
|
||||
PREFIX ${CMAKE_BINARY_DIR}/doctest
|
||||
GIT_REPOSITORY https://github.com/onqtam/doctest.git
|
||||
GIT_TAG 8424be522357e68d8c6178375546bb0cf9d5f6b3 # v2.4.1
|
||||
GIT_TAG 7b9885133108ae301ddd16e2651320f54cafeba7 # v2.4.8
|
||||
TIMEOUT 10
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND ""
|
||||
|
@ -428,7 +428,7 @@ public:
|
||||
platform::createDirectory(path);
|
||||
}
|
||||
}
|
||||
self->lfd = open(self->file.fileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC);
|
||||
self->lfd = open(self->file.fileName.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0600);
|
||||
if (self->lfd == -1) {
|
||||
TraceEvent(SevError, "OpenLocalFileFailed").detail("File", self->file.fileName);
|
||||
throw platform_error();
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <random>
|
||||
#include <thread>
|
||||
#include "flow/actorcompiler.h" // has to be last include
|
||||
|
||||
#ifdef ENABLE_SAMPLING
|
||||
|
Loading…
x
Reference in New Issue
Block a user