Skip to content

Commit

Permalink
[gn] port b0bb68f (LLVM_ENABLE_REVERSE_ITERATION in clang/test)
Browse files Browse the repository at this point in the history
  • Loading branch information
nico committed Jul 22, 2023
1 parent f118ef6 commit 365d6eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llvm/utils/gn/secondary/clang/test/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import("//clang/lib/ARCMigrate/enable.gni")
import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
import("//llvm/include/llvm/Config/config.gni")
import("//llvm/lib/Target/targets.gni")
import("//llvm/triples.gni")
import("//llvm/utils/gn/build/libs/pthread/enable.gni")
Expand Down Expand Up @@ -122,6 +123,12 @@ write_lit_config("lit_site_cfg") {
]
}

if (llvm_enable_reverse_iteration) {
extra_values += [ "LLVM_ENABLE_REVERSE_ITERATION=1" ]
} else {
extra_values += [ "LLVM_ENABLE_REVERSE_ITERATION=0" ] # Must be 0.
}

if (llvm_enable_threads) {
extra_values += [ "LLVM_ENABLE_THREADS=1" ]
} else {
Expand Down

0 comments on commit 365d6eb

Please sign in to comment.