Skip to content

Commit f696489

Browse files
authored
[CMake] Don't pass -DBUILD_EXAMPLES to the build (#102838)
The only use in `opt.cpp` was removed in d291f1f.
1 parent d469794 commit f696489

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,10 +796,6 @@ option(LLVM_BUILD_EXAMPLES
796796
"Build the LLVM example programs. If OFF, just generate build targets." OFF)
797797
option(LLVM_INCLUDE_EXAMPLES "Generate build targets for the LLVM examples" ON)
798798

799-
if(LLVM_BUILD_EXAMPLES)
800-
add_compile_definitions(BUILD_EXAMPLES)
801-
endif(LLVM_BUILD_EXAMPLES)
802-
803799
option(LLVM_BUILD_TESTS
804800
"Build LLVM unit tests. If OFF, just generate build targets." OFF)
805801
option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON)

0 commit comments

Comments
 (0)