[llvm] f696489 - [CMake] Don't pass -DBUILD_EXAMPLES to the build (#102838)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 00:16:47 PDT 2024
Author: Sergei Barannikov
Date: 2024-08-12T10:16:43+03:00
New Revision: f696489e534ef5b04ccba5a78cdba5cb26afb1e9
URL: https://github.com/llvm/llvm-project/commit/f696489e534ef5b04ccba5a78cdba5cb26afb1e9
DIFF: https://github.com/llvm/llvm-project/commit/f696489e534ef5b04ccba5a78cdba5cb26afb1e9.diff
LOG: [CMake] Don't pass -DBUILD_EXAMPLES to the build (#102838)
The only use in `opt.cpp` was removed in
d291f1fd094538af705541045c0d9c3ceb85e71d.
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 51f99cb696257..d681b1ccab629 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -796,10 +796,6 @@ 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_compile_definitions(BUILD_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)
More information about the llvm-commits
mailing list