@@ -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,6 +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.
59+ "-DLLVM_ENABLE_DOXYGEN={}" .format (llvm_enable_doxygen ),
5560 llvm_dir
5661 ]
5762
@@ -84,6 +89,7 @@ def main():
8489 metavar = "BUILD_TYPE" , required = True , help = "build type, debug or release" )
8590 parser .add_argument ("--cuda" , action = 'store_true' , help = "switch from OpenCL to CUDA" )
8691 parser .add_argument ("--assertions" , action = 'store_true' , help = "build with assertions" )
92+ parser .add_argument ("--docs" , action = 'store_true' , help = "build Doxygen documentation" )
8793
8894 args = parser .parse_args ()
8995
0 commit comments