0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

Merge branch 'origin/develop' into release_2_0

This commit is contained in:
Victor Zarubkin 2017-11-20 21:34:03 +03:00
commit 3b809fa6f3
5 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12.1)
cmake_minimum_required(VERSION 3.0)
project(easy_profiler CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

View File

@ -15,6 +15,10 @@ if (NOT WIN32)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.3")
set(NO_CXX11_THREAD_LOCAL_SUPPORT TRUE)
endif ()
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "8.0")
set(NO_CXX11_THREAD_LOCAL_SUPPORT TRUE)
endif ()
endif ()
# TODO: Check thread_local keyword support for other compilers for Unix

View File

@ -96,8 +96,8 @@
# define EASY_COMPILER_VERSION (__clang_major__ * 10 + __clang_minor__)
# if EASY_COMPILER_VERSION < 33
// There is no support for C++11 thread_local keyword prior to Clang v3.3. Use __thread instead.
# if EASY_COMPILER_VERSION < 33 || (defined(__APPLE_CC__) && __APPLE_CC__ < 8000)
// There is no support for C++11 thread_local keyword prior to Clang v3.3 and Apple LLVM clang 8.0. Use __thread instead.
# define EASY_THREAD_LOCAL __thread
# endif

View File

@ -41,7 +41,8 @@ The Apache License, Version 2.0 (the "License");
**/
#include "nonscoped_block.h"
#include <string.h>
#include <cstring>
#include <cstdlib>
NonscopedBlock::NonscopedBlock(const profiler::BaseBlockDescriptor* _desc, const char* _runtimeName, bool)
: profiler::Block(_desc, _runtimeName, false), m_runtimeName(nullptr)

View File

@ -46,6 +46,7 @@ The Apache License, Version 2.0 (the "License");
#include "nonscoped_block.h"
#include <list>
#include <algorithm>
#include <cstdlib>
#ifdef max
#undef max