Skip to content

Commit 136730b

Browse files
author
Alexander Batashev
authored
[SYCL][CI] Provide --ci-defaults option for config script (#4583)
Default options for CI and user build environments have different requirements. New option will be used by CI to get strict set of options, like enabling -Werror. Running script without arguments will set sensible defaults for those, who are building compiler toolchain for use, rather than contributing to this project. At the moment this option is nop.
1 parent 962ae12 commit 136730b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/linux_post_commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
mkdir -p $GITHUB_WORKSPACE/build
4343
cd $GITHUB_WORKSPACE/build
4444
python3 $GITHUB_WORKSPACE/src/buildbot/configure.py -w $GITHUB_WORKSPACE \
45-
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release $ARGS
45+
-s $GITHUB_WORKSPACE/src -o $GITHUB_WORKSPACE/build -t Release --ci-defaults $ARGS
4646
- name: Compile
4747
run: |
4848
python3 $GITHUB_WORKSPACE/src/buildbot/compile.py -w $GITHUB_WORKSPACE \

buildbot/configure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def do_configure(args):
4141

4242
sycl_enable_xpti_tracing = 'ON'
4343

44+
if args.ci_defaults:
45+
print("#############################################")
46+
print("# Default CI configuration will be applied. #")
47+
print("#############################################")
48+
4449
# replace not append, so ARM ^ X86
4550
if args.arm:
4651
llvm_targets_to_build = 'ARM;AArch64'
@@ -193,6 +198,7 @@ def main():
193198
parser.add_argument("--libcxx-library", metavar="LIBCXX_LIBRARY_PATH", help="libcxx library path")
194199
parser.add_argument("--use-lld", action="store_true", help="Use LLD linker for build")
195200
parser.add_argument("--llvm-external-projects", help="Add external projects to build. Add as comma seperated list.")
201+
parser.add_argument("--ci-defaults", action="store_true", help="Enable default CI parameters")
196202
args = parser.parse_args()
197203

198204
print("args:{}".format(args))

0 commit comments

Comments
 (0)