Skip to content

Commit 0477ed5

Browse files
author
Alexander Batashev
committed
Make Doxygen generation optional
Signed-off-by: Alexander Batashev <[email protected]>
1 parent c85c6ad commit 0477ed5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/gh_pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
mkdir -p $GITHUB_WORKSPACE/build
2424
cd $GITHUB_WORKSPACE/build
2525
python $GITHUB_WORKSPACE/repo/buildbot/configure.py -w $GITHUB_WORKSPACE \
26-
-s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release
26+
-s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release --docs
2727
cmake --build . --target doxygen-sycl
2828
- name: Deploy
2929
env:

buildbot/configure.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)