mirror of
https://github.com/textmate/textmate.git
synced 2026-01-14 01:08:04 -05:00
When building with Xcode 8 beta (on my system at least), clang produced the following warning: clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 It appears clang will link with libstdc++ if present by default instead of libc++. This was verified using `otool -L bundles.dylib` which produce the following output prior to this change. bundles.dylib: @rpath/bundles.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/OakSystem.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/io.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/plist.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/regexp.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/scope.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/text.dylib (compatibility version 1.0.0, current version 1.0.1) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 104.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1) With this change the output is now: bundles.dylib: @rpath/bundles.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/OakSystem.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/io.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/plist.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/regexp.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/scope.dylib (compatibility version 1.0.0, current version 1.0.1) @rpath/text.dylib (compatibility version 1.0.0, current version 1.0.1) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
38 lines
1.3 KiB
Plaintext
38 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 -stdlib=libc++
|
|
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"
|
|
|
|
PRELUDE = Shared/PCH/prelude.*
|
|
|
|
TARGETS = vendor/*/target
|
|
TARGETS += Frameworks/*/target
|
|
TARGETS += Applications/target
|
|
TARGETS += QuickLook/TextMate/target
|
|
TARGETS += PlugIns/*/*.target
|