Browse Source

Set needed CMake values for FreeBSD

pull/114/head
Anders Jenbo 7 years ago
parent
commit
473ff318c4
  1. 5
      CMakeLists.txt
  2. 2
      SourceS/miniwin.h
  3. 2
      defs.h

5
CMakeLists.txt

@ -35,6 +35,11 @@ if(NIGHTLY_BUILD)
set(FASTER ON)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
set(ASAN OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DO_LARGEFILE -Dstat64=stat -Dlstat64=lstat -Dlseek64=lseek -Doff64_t=off_t -Dfstat64=fstat -Dftruncate64=ftruncate")
endif()
if(WIN32)
set(ASAN OFF)
set(DIST ON)

2
SourceS/miniwin.h

@ -3,7 +3,7 @@
#include <ctype.h>
#include <math.h>
// work around https://reviews.llvm.org/D51265
#ifdef __APPLE__
#if defined(__APPLE__) || defined(__FreeBSD__)
#include "macos_stdarg.h"
#else
#include <stdarg.h>

2
defs.h

@ -184,7 +184,7 @@ __inline void *qmemcpy(void *dst, const void *src, size_t cnt)
// Typedef for the function pointer
typedef void (*_PVFV)(void);
#if defined(_MSC_VER) && !defined(__APPLE__)
#if defined(_MSC_VER) && !(defined(__APPLE__)|| defined(__FreeBSD__))
// Define our segment names
#define SEGMENT_C_INIT ".CRT$XCU"

Loading…
Cancel
Save