Files
textmate/target
Ronald Wampler 172ce9d428 Replace thread_local with boost equivalent
The new version of clang (Apple LLVM version 6.1.0) as shipped with Xcode 6.3, disabled TLS. According to http://clang.llvm.org/cxx_status.html, in order to support `thread_local`, the C++ runtime library from g++-4.8 or later is needed.

For now, we can use the boost `thread_specific_ptr`. This is probably a reasonable solution since 1) it should be portable with old and future versions of (Apple's) clang and 2) requires no additional dependencies.
2015-04-30 15:15:56 +02:00

40 lines
1.3 KiB
Plaintext

PLIST_FLAGS = -d'APP_NAME=$APP_NAME' -d'APP_VERSION=$APP_VERSION' -d'APP_MIN_OS=$APP_MIN_OS'
FLAGS += -c -pipe -fPIC -gdwarf-2
FLAGS += -m64 -mmacosx-version-min=$APP_MIN_OS
FLAGS += -funsigned-char
FLAGS += -D'NULL_STR="\uFFFF"'
FLAGS += -DREST_API='"$rest_api"'
FLAGS += -Wall -Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs -Wno-parentheses -Wno-sign-compare -Wno-switch
FLAGS += -IShared/include
FLAGS += -fcolor-diagnostics
# FLAGS += -D_GLIBCXX_DEBUG
FLAGS += -DNDEBUG -Os
# LINK = OakDebug
CXX_FLAGS += -fvisibility=hidden -std=c++1y -stdlib=libc++
OBJC_FLAGS += -fvisibility=hidden -fobjc-arc -std=c99 -fobjc-abi-version=3
OBJCXX_FLAGS += -fvisibility=hidden -std=c++1y -stdlib=libc++ -fobjc-abi-version=3
OBJCXX_FLAGS += -fobjc-arc -fobjc-call-cxx-cdtors
LIBS += c++
LN_FLAGS += -m64 -mmacosx-version-min=$APP_MIN_OS
LN_FLAGS += -fvisibility=hidden
LN_FLAGS += -Wl,-dead_strip
LN_FLAGS += -Wl,-dead_strip_dylibs
LN_FLAGS += -rpath @executable_path/../Frameworks
CXX_FLAGS += -I"$capnp_prefix/include"
LN_FLAGS += -L"$capnp_prefix/lib"
LN_FLAGS += -lboost_thread-mt
PRELUDE = Shared/PCH/prelude.*
TARGETS = vendor/*/target
TARGETS += Frameworks/*/target
TARGETS += Applications/target
TARGETS += QuickLook/TextMate/target
TARGETS += PlugIns/*/*.target