Skip to content

Commit fe09550

Browse files
committed
[gn] port 7dc7c15
1 parent a2f72ed commit fe09550

File tree

1 file changed

+7
-0
lines changed
  • llvm/utils/gn/secondary/lldb/test

1 file changed

+7
-0
lines changed

llvm/utils/gn/secondary/lldb/test/BUILD.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import("//llvm/triples.gni")
22

3+
import("//llvm/utils/gn/build/buildflags.gni")
34
#import("//llvm/utils/gn/build/libs/xar/enable.gni")
45
import("//llvm/utils/gn/build/libs/xml/enable.gni")
56
import("//llvm/utils/gn/build/libs/zlib/enable.gni")
@@ -93,6 +94,12 @@ write_lit_cfg("lit_api_site_cfg") {
9394
"HOST_OS=$host_os", # XXX
9495
]
9596

97+
if (is_debug) {
98+
extra_values += [ "CMAKE_BUILD_TYPE=Debug" ]
99+
} else {
100+
extra_values += [ "CMAKE_BUILD_TYPE=Releas" ]
101+
}
102+
96103
dir = get_path_info(output, "dir")
97104
if (host_os == "win") {
98105
# See comment for Windows solink in llvm/utils/gn/build/toolchain/BUILD.gn

0 commit comments

Comments
 (0)