Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: tools/clang/CMakeLists.txt

Issue 2793343002: Add --enable-pgo option to build clang with PGO
Patch Set: Add clang build with PGO Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/clang/scripts/package.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 cmake_minimum_required(VERSION 2.8.8) 1 cmake_minimum_required(VERSION 2.8.8)
2 project(ChromeExtras) 2 project(ChromeExtras)
3 enable_testing() 3 enable_testing()
4 4
5 list(APPEND CMAKE_MODULE_PATH "${LLVM_BUILD_DIR}/share/llvm/cmake") 5 list(APPEND CMAKE_MODULE_PATH "${LLVM_BUILD_DIR}/share/llvm/cmake")
6 6
7 # These tools are built using LLVM's build system, not Chromium's. 7 # These tools are built using LLVM's build system, not Chromium's.
8 # The build script generates a shim CMakeLists.txt in the LLVM source tree, 8 # The build script generates a shim CMakeLists.txt in the LLVM source tree,
9 # which simply forwards to this file. 9 # which simply forwards to this file.
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 function(cr_install) 52 function(cr_install)
53 install(${ARGN} COMPONENT chrome-tools OPTIONAL) 53 install(${ARGN} COMPONENT chrome-tools OPTIONAL)
54 endfunction(cr_install) 54 endfunction(cr_install)
55 55
56 # Custom install target, so the chrome tools can be installed without installing 56 # Custom install target, so the chrome tools can be installed without installing
57 # all the other LLVM targets. 57 # all the other LLVM targets.
58 add_custom_target(cr-install COMMAND 58 add_custom_target(cr-install COMMAND
59 ${CMAKE_COMMAND} -D COMPONENT=chrome-tools -P cmake_install.cmake) 59 ${CMAKE_COMMAND} -D COMPONENT=chrome-tools -P cmake_install.cmake)
60 60
61 foreach(tool ${CHROMIUM_TOOLS}) 61 if (CHROMIUM_TOOLS)
62 add_subdirectory(${tool}) 62 # Clang bootstraper has hard times with semicolon separated values, so
63 endforeach(tool) 63 # CHROMIUM_TOOLS are separated by comma. To make it iterable cmake list
64 # replace those with semicolon.
65 string(REPLACE "," ";" CHROMIUM_TOOLS_LIST ${CHROMIUM_TOOLS})
66 foreach(tool ${CHROMIUM_TOOLS_LIST})
67 add_subdirectory(${tool})
68 endforeach(tool)
69 endif(CHROMIUM_TOOLS)
OLDNEW
« no previous file with comments | « no previous file | tools/clang/scripts/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698