File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 76
76
-DCMAKE_CXX_COMPILER:PATH=$(which icpx) \
77
77
-DDPCTL_GENERATE_DOCS=ON \
78
78
-DDPCTL_ENABLE_DOXYREST=ON \
79
- -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
79
+ -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64 \
80
+ -DCMAKE_VERBOSE_MAKEFILE=ON
80
81
python -c "import dpctl; print(dpctl.__version__)" || exit 1
81
82
pushd "$(find _skbuild -name cmake-build)" || exit 1
82
83
cmake --build . --target Sphinx || exit 1
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ def run(
27
27
compiler_root = None ,
28
28
bin_llvm = None ,
29
29
doxyrest_dir = None ,
30
+ verbose = False ,
31
+ cmake_opts = "" ,
30
32
):
31
33
IS_LIN = False
32
34
@@ -55,10 +57,16 @@ def run(
55
57
"-DDPCTL_GENERATE_DOCS=ON" ,
56
58
]
57
59
60
+ if verbose :
61
+ cmake_args .append ("-DCMAKE_VERBOSE_MAKEFILE=ON" )
62
+
58
63
if doxyrest_dir :
59
64
cmake_args .append ("-DDPCTL_ENABLE_DOXYREST=ON" )
60
65
cmake_args .append ("-DDoxyrest_DIR=" + doxyrest_dir )
61
66
67
+ if cmake_opts :
68
+ cmake_args += cmake_opts .split ()
69
+
62
70
env = dict ()
63
71
if bin_llvm :
64
72
env = {
@@ -126,6 +134,19 @@ def run(
126
134
+ "for libsyclinterface"
127
135
),
128
136
)
137
+ driver .add_argument (
138
+ "--verbose" ,
139
+ help = "Build using vebose makefile mode" ,
140
+ dest = "verbose" ,
141
+ action = "store_true" ,
142
+ )
143
+ driver .add_argument (
144
+ "--cmake-opts" ,
145
+ help = "Options to pass through to cmake" ,
146
+ dest = "cmake_opts" ,
147
+ default = "" ,
148
+ type = str ,
149
+ )
129
150
130
151
args = parser .parse_args ()
131
152
@@ -162,4 +183,6 @@ def run(
162
183
compiler_root = args .compiler_root ,
163
184
bin_llvm = args .bin_llvm ,
164
185
doxyrest_dir = args .doxyrest_root ,
186
+ verbose = args .verbose ,
187
+ cmake_opts = args .cmake_opts ,
165
188
)
You can’t perform that action at this time.
0 commit comments