forked from OSchip/llvm-project
[gn build] (manually) port ce1365f8f7
This commit is contained in:
parent
4cae6228d1
commit
fbce456fad
|
@ -56,7 +56,9 @@ set(LIBCXX_SOURCES
|
|||
)
|
||||
|
||||
if (LIBCXX_ENABLE_DEBUG_MODE)
|
||||
list(APPEND LIBCXX_SOURCES debug.cpp)
|
||||
list(APPEND LIBCXX_SOURCES
|
||||
debug.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
|
|
@ -2,6 +2,9 @@ import("//clang/runtimes.gni")
|
|||
import("//llvm/utils/gn/build/symlink_or_copy.gni")
|
||||
|
||||
declare_args() {
|
||||
# Whether to support libc++ opt-in debug mode via _LIBCPP_DEBUG.
|
||||
libcxx_enable_debug_mode = true
|
||||
|
||||
# Build libc++ with definitions for operator new/delete.
|
||||
libcxx_enable_new_delete_definitions = true
|
||||
|
||||
|
@ -115,7 +118,6 @@ cxx_sources = [
|
|||
"chrono.cpp",
|
||||
"condition_variable.cpp",
|
||||
"condition_variable_destructor.cpp",
|
||||
"debug.cpp",
|
||||
"exception.cpp",
|
||||
"functional.cpp",
|
||||
"future.cpp",
|
||||
|
@ -169,6 +171,9 @@ if (target_os == "win") {
|
|||
if (target_os == "solaris") {
|
||||
cxx_sources += [ "support/solaris/xlocale.cpp" ]
|
||||
}
|
||||
if (libcxx_enable_debug_mode) {
|
||||
cxx_sources += [ "debug.cpp" ]
|
||||
}
|
||||
if (libcxx_enable_filesystem) {
|
||||
cxx_sources += [
|
||||
"filesystem/directory_iterator.cpp",
|
||||
|
|
Loading…
Reference in New Issue