Skip to content

Commit 880b0c3

Browse files
Merge pull request #917 from IntelPython/script-build-locally-support-cmake-opts
scripts/build_locally.py now supports --cmake-opts option
2 parents ae5b934 + e6e608a commit 880b0c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/build_locally.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def run(
2828
compiler_root=None,
2929
cmake_executable=None,
3030
use_glog=False,
31+
cmake_opts="",
3132
):
3233
build_system = None
3334

@@ -57,6 +58,8 @@ def run(
5758
"-DDPCTL_ENABLE_L0_PROGRAM_CREATION=" + ("ON" if level_zero else "OFF"),
5859
"-DDPCTL_ENABLE_GLOG:BOOL=" + ("ON" if use_glog else "OFF"),
5960
]
61+
if cmake_opts:
62+
cmake_args += cmake_opts.split()
6063
subprocess.check_call(
6164
cmake_args, shell=False, cwd=setup_dir, env=os.environ
6265
)
@@ -110,6 +113,13 @@ def run(
110113
dest="glog",
111114
action="store_true",
112115
)
116+
driver.add_argument(
117+
"--cmake-opts",
118+
help="DPCTLSyclInterface uses Google logger",
119+
dest="cmake_opts",
120+
default="",
121+
type=str,
122+
)
113123
args = parser.parse_args()
114124

115125
args_to_validate = [
@@ -163,4 +173,5 @@ def run(
163173
compiler_root=args.compiler_root,
164174
cmake_executable=args.cmake_executable,
165175
use_glog=args.glog,
176+
cmake_opts=args.cmake_opts,
166177
)

0 commit comments

Comments
 (0)