@@ -17,6 +17,7 @@ def do_configure(args):
17
17
libclc_targets_to_build = ''
18
18
sycl_build_pi_cuda = 'OFF'
19
19
llvm_enable_assertions = 'ON'
20
+ llvm_enable_doxygen = 'OFF'
20
21
21
22
if platform .system () == 'Linux' :
22
23
icd_loader_lib = os .path .join (icd_loader_lib , "libOpenCL.so" )
@@ -32,6 +33,9 @@ def do_configure(args):
32
33
if args .assertions :
33
34
llvm_enable_assertions = 'ON'
34
35
36
+ if args .docs :
37
+ llvm_enable_doxygen = 'ON'
38
+
35
39
install_dir = os .path .join (args .obj_dir , "install" )
36
40
37
41
cmake_cmd = [
@@ -52,7 +56,7 @@ def do_configure(args):
52
56
"-DSYCL_ENABLE_WERROR=ON" ,
53
57
"-DCMAKE_INSTALL_PREFIX={}" .format (install_dir ),
54
58
"-DSYCL_INCLUDE_TESTS=ON" , # Explicitly include all kinds of SYCL tests.
55
- "-DLLVM_ENABLE_DOXYGEN=ON" ,
59
+ "-DLLVM_ENABLE_DOXYGEN={}" . format ( llvm_enable_docs ) ,
56
60
llvm_dir
57
61
]
58
62
@@ -85,6 +89,7 @@ def main():
85
89
metavar = "BUILD_TYPE" , required = True , help = "build type, debug or release" )
86
90
parser .add_argument ("--cuda" , action = 'store_true' , help = "switch from OpenCL to CUDA" )
87
91
parser .add_argument ("--assertions" , action = 'store_true' , help = "build with assertions" )
92
+ parser .add_argument ("--docs" , action = 'store_true' , help = "build Doxygen documentation" )
88
93
89
94
args = parser .parse_args ()
90
95
0 commit comments