@@ -17,6 +17,7 @@ def do_configure(args):
1717 libclc_targets_to_build = ''
1818 sycl_build_pi_cuda = 'OFF'
1919 llvm_enable_assertions = 'ON'
20+ llvm_enable_doxygen = 'OFF'
2021
2122 if platform .system () == 'Linux' :
2223 icd_loader_lib = os .path .join (icd_loader_lib , "libOpenCL.so" )
@@ -32,6 +33,9 @@ def do_configure(args):
3233 if args .assertions :
3334 llvm_enable_assertions = 'ON'
3435
36+ if args .docs :
37+ llvm_enable_doxygen = 'ON'
38+
3539 install_dir = os .path .join (args .obj_dir , "install" )
3640
3741 cmake_cmd = [
@@ -52,7 +56,7 @@ def do_configure(args):
5256 "-DSYCL_ENABLE_WERROR=ON" ,
5357 "-DCMAKE_INSTALL_PREFIX={}" .format (install_dir ),
5458 "-DSYCL_INCLUDE_TESTS=ON" , # Explicitly include all kinds of SYCL tests.
55- "-DLLVM_ENABLE_DOXYGEN=ON" ,
59+ "-DLLVM_ENABLE_DOXYGEN={}" . format ( llvm_enable_docs ) ,
5660 llvm_dir
5761 ]
5862
@@ -85,6 +89,7 @@ def main():
8589 metavar = "BUILD_TYPE" , required = True , help = "build type, debug or release" )
8690 parser .add_argument ("--cuda" , action = 'store_true' , help = "switch from OpenCL to CUDA" )
8791 parser .add_argument ("--assertions" , action = 'store_true' , help = "build with assertions" )
92+ parser .add_argument ("--docs" , action = 'store_true' , help = "build Doxygen documentation" )
8893
8994 args = parser .parse_args ()
9095
0 commit comments