diff options
author | Florian Hahn <flo@fhahn.com> | 2020-01-04 15:01:43 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2020-01-04 15:47:23 +0000 |
commit | 0bb22b91ea335b964b99862834164b0b3a866eb4 (patch) | |
tree | d76e85a805f172466d61d3626b8a8c4e22891436 /llvm/CMakeLists.txt | |
parent | b7ecf1c1c373c53183ef6ef66efbe4237ff7b96d (diff) | |
download | bcm5719-llvm-0bb22b91ea335b964b99862834164b0b3a866eb4.tar.gz bcm5719-llvm-0bb22b91ea335b964b99862834164b0b3a866eb4.zip |
Re-apply "[Examples] Add IRTransformations directory to examples."
This reverts commit 19fd8925a4afe6efd248688cce06aceff50efe0c.
Should include a fix for PR44197.
Diffstat (limited to 'llvm/CMakeLists.txt')
-rw-r--r-- | llvm/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index ac6eecf6611..9bbcba069c1 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -513,6 +513,10 @@ option(LLVM_BUILD_EXAMPLES "Build the LLVM example programs. If OFF, just generate build targets." OFF) option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON) +if(LLVM_BUILD_EXAMPLES) + add_definitions(-DBUILD_EXAMPLES) +endif(LLVM_BUILD_EXAMPLES) + option(LLVM_BUILD_TESTS "Build LLVM unit tests. If OFF, just generate build targets." OFF) option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON) |