-
Notifications
You must be signed in to change notification settings - Fork 233
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
491 lines (439 loc) · 18.7 KB
/
CMakeLists.txt
File metadata and controls
491 lines (439 loc) · 18.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
include(FetchContent)
include(ExternalProject)
include(CTest)
enable_testing()
option(PYTHON_TESTS "Build Python with this wasi-libc and run its tests" OFF)
# ========= Clone libc-test =====================================
FetchContent_Declare(
libc-test
GIT_REPOSITORY https://github.com/bytecodealliance/libc-test
GIT_TAG 18e28496adee3d84fefdda6efcb9c5b8996a2398
GIT_SHALLOW true
)
FetchContent_MakeAvailable(libc-test)
set(LIBC_TEST "${libc-test_SOURCE_DIR}")
message(STATUS "libc-test source directory: ${LIBC_TEST}")
# ========= Download wasmtime as a test runner ==================
include(ba-download)
if(NOT ENGINE OR ENGINE STREQUAL "")
ba_download(
wasmtime
"https://github.com/bytecodealliance/wasmtime"
"v41.0.0"
)
ExternalProject_Get_Property(wasmtime SOURCE_DIR)
set(ENGINE "${SOURCE_DIR}/wasmtime")
message(STATUS "Wasmtime executable: ${ENGINE}")
add_custom_target(engine ALL DEPENDS wasmtime)
else()
add_custom_target(engine)
endif()
# ========= libc-test defined tests =============================
function(add_wasilibc_flags target)
add_dependencies(${target} sysroot builtins)
# Using an `INTERFACE` looks to get what we want here which is to rebuild this
# if the library changes but not actually add any arguments to the link-line.
target_link_libraries(${target} INTERFACE c-static)
if (TARGET_TRIPLE MATCHES "-threads")
target_link_options(${target} PRIVATE -pthread
-Wl,--import-memory,--export-memory,--shared-memory,--max-memory=1073741824)
endif()
endfunction()
add_library(libc_test_support STATIC
"${LIBC_TEST}/src/common/path.c"
"${LIBC_TEST}/src/common/print.c"
"${LIBC_TEST}/src/common/rand.c"
"${LIBC_TEST}/src/common/utf8.c"
)
target_include_directories(libc_test_support PUBLIC "${LIBC_TEST}/src/common")
add_wasilibc_flags(libc_test_support)
# Adds a new test executable to build
#
# * `executable_name` must be a unique name and valid cmake target name.
# * `src` is the path to the test file to compile.
#
# Optional arguments:
#
# * `CFLAGS -a -b -c` - additional flags to pass to the compiler
# * `LDFLAGS -a -b -c` - additional flags to pass to the linker
function(add_test_executable executable_name src)
set(options)
set(oneValueArgs)
set(multiValueArgs LDFLAGS CFLAGS)
cmake_parse_arguments(PARSE_ARGV 1 arg "${options}" "${oneValueArgs}" "${multiValueArgs}")
# Build the test exeutable itself and apply all custom options as applicable.
add_executable(${executable_name} ${src})
clang_format_target(${executable_name})
add_wasilibc_flags(${executable_name})
target_link_libraries(${executable_name} PRIVATE libc_test_support)
foreach(flag IN LISTS arg_CFLAGS)
target_compile_options(${executable_name} PRIVATE ${flag})
endforeach()
foreach(flag IN LISTS arg_LDFLAGS)
target_link_options(${executable_name} PRIVATE ${flag})
endforeach()
target_include_directories(${executable_name} PRIVATE "${LIBC_TEST}")
endfunction()
# Adds a new test to run.
#
# * `test_name` must be a unique name and valid cmake target name.
# * `test_file` is the path to the test file to compile.
#
# Optional arguments:
#
# * `FS` - this test requires a temporary directory mounted as `/`
# * `ARGV arg1 arg2` - additional arguments to pass to the test at runtime
# * `ENV a=b b=c` - set env vars for when executing this test
# * `NETWORK` - this test uses the network and sockets.
# * `PASS_REGULAR_EXPRESSION` - a regex that must match the test output to pass
# * `FAILP3` - this test fails on wasip3 targets
function(register_test test_name executable_name)
set(options FS NETWORK FAILP3)
set(oneValueArgs CLIENT PASS_REGULAR_EXPRESSION)
set(multiValueArgs ARGV ENV LDFLAGS CFLAGS)
cmake_parse_arguments(PARSE_ARGV 1 arg "${options}" "${oneValueArgs}" "${multiValueArgs}")
set(wasmtime_args)
if (arg_FS)
set(fsdir "${CMAKE_CURRENT_BINARY_DIR}/tmp/${test_name}/fs")
list(APPEND wasmtime_args --dir ${fsdir}::/)
endif()
if (arg_NETWORK)
list(APPEND wasmtime_args -Sinherit-network)
endif()
foreach(env IN LISTS arg_ENV)
list(APPEND wasmtime_args --env ${env})
endforeach()
if (TARGET_TRIPLE MATCHES "-threads")
list(APPEND wasmtime_args --wasi threads --wasm shared-memory)
endif()
if (WASI STREQUAL "p3")
list(APPEND wasmtime_args --wasm component-model-async)
list(APPEND wasmtime_args --wasi p3)
endif()
add_test(
NAME "${test_name}"
COMMAND
${ENGINE}
${wasmtime_args}
$<TARGET_FILE:${executable_name}> ${arg_ARGV}
)
# Use CTest fixtures to create a the temporary directory before the test
# starts running and clean it up afterwards.
if (arg_FS)
add_test(NAME "setup_${test_name}" COMMAND mkdir -p ${fsdir})
add_test(NAME "cleanup_${test_name}" COMMAND rm -rf ${fsdir})
set_tests_properties("setup_${test_name}" PROPERTIES FIXTURES_SETUP "fs_${test_name}")
set_tests_properties("cleanup_${test_name}" PROPERTIES FIXTURES_CLEANUP "fs_${test_name}")
set_tests_properties("${test_name}" PROPERTIES FIXTURES_REQUIRED "fs_${test_name}")
endif()
# All sockets tests use the same port right now, so only one can run at a
# time.
if (arg_NETWORK)
set_tests_properties(${test_name} PROPERTIES RESOURCE_LOCK socket-test)
endif()
if (arg_PASS_REGULAR_EXPRESSION)
set_tests_properties(${test_name} PROPERTIES PASS_REGULAR_EXPRESSION "${arg_PASS_REGULAR_EXPRESSION}")
endif()
set_tests_properties(${test_name} PROPERTIES TIMEOUT 10)
if (arg_FAILP3 AND (WASI STREQUAL "p3"))
set_tests_properties(${test_name} PROPERTIES WILL_FAIL TRUE)
endif()
add_dependencies(${test_name} engine)
endfunction()
# Adds a new test from the `libc-test` repository where `test_file` is a
# relative path from the `src` directory.
#
# Also supports options `register_test` does.
function(add_libc_test test_file)
cmake_path(REPLACE_EXTENSION test_file wasm OUTPUT_VARIABLE test_name)
string(REPLACE "/" "_" test_name ${test_name})
set(test_name "libc_test_${test_name}")
set(test_file "${LIBC_TEST}/src/${test_file}")
add_test_executable(${test_name} "${test_file}" ${ARGN})
register_test(${test_name} ${test_name} ${ARGN})
endfunction()
add_libc_test(functional/argv.c)
add_libc_test(functional/basename.c)
add_libc_test(functional/clocale_mbfuncs.c)
add_libc_test(functional/clock_gettime.c)
add_libc_test(functional/crypt.c)
add_libc_test(functional/dirname.c)
add_libc_test(functional/env.c)
add_libc_test(functional/fnmatch.c)
add_libc_test(functional/iconv_open.c)
add_libc_test(functional/mbc.c)
add_libc_test(functional/memstream.c)
add_libc_test(functional/qsort.c)
add_libc_test(functional/random.c)
add_libc_test(functional/search_hsearch.c)
if (MALLOC STREQUAL "emmalloc")
set_tests_properties(libc_test_functional_search_hsearch.wasm PROPERTIES WILL_FAIL TRUE)
endif()
add_libc_test(functional/search_insque.c)
if (LTO STREQUAL "full")
set_tests_properties(libc_test_functional_search_insque.wasm PROPERTIES WILL_FAIL TRUE)
endif()
add_libc_test(functional/search_lsearch.c)
add_libc_test(functional/search_tsearch.c)
add_libc_test(functional/snprintf.c)
add_libc_test(functional/sscanf.c CFLAGS -Wno-literal-range)
add_libc_test(functional/strftime.c)
add_libc_test(functional/string.c)
add_libc_test(functional/string_memcpy.c)
add_libc_test(functional/string_memmem.c)
add_libc_test(functional/string_memset.c)
add_libc_test(functional/string_strchr.c)
add_libc_test(functional/string_strcspn.c)
add_libc_test(functional/string_strstr.c)
add_libc_test(functional/strtod.c)
add_libc_test(functional/strtod_long.c)
add_libc_test(functional/strtod_simple.c)
add_libc_test(functional/strtof.c)
add_libc_test(functional/strtol.c)
add_libc_test(functional/strtold.c LDFLAGS -lc-printscan-long-double)
add_libc_test(functional/swprintf.c)
add_libc_test(functional/tgmath.c)
add_libc_test(functional/udiv.c)
add_libc_test(functional/wcsstr.c)
add_libc_test(functional/wcstol.c)
if (TARGET_TRIPLE MATCHES "-threads")
add_libc_test(functional/pthread_mutex.c)
add_libc_test(functional/pthread_tsd.c)
add_libc_test(functional/pthread_cond.c)
endif()
# ========= wasi-libc-test defined tests ========================
function(add_wasilibc_test test_file)
cmake_path(REPLACE_EXTENSION test_file wasm OUTPUT_VARIABLE test_name)
set(test_file "${CMAKE_CURRENT_SOURCE_DIR}/src/${test_file}")
add_test_executable(${test_name} "${test_file}" ${ARGN})
register_test(${test_name} ${test_name} ${ARGN})
endfunction()
# TODO: this test fails with `-Sthreads` in Wasmtime since that uses a different
# implementation of WASI which causes this test to fail.
if (NOT TARGET_TRIPLE MATCHES "-threads")
add_wasilibc_test(access.c FS FAILP3)
endif()
add_wasilibc_test(append.c FS FAILP3)
add_wasilibc_test(argv_two_args.c ARGV foo bar)
add_wasilibc_test(clock_nanosleep.c)
add_wasilibc_test(chdir.c FS FAILP3)
add_wasilibc_test(close.c FS FAILP3)
add_wasilibc_test(external_env.c ENV VAR1=foo VAR2=bar)
add_wasilibc_test(fadvise.c FS FAILP3)
add_wasilibc_test(fallocate.c FS FAILP3)
add_wasilibc_test(fcntl.c FS FAILP3)
add_wasilibc_test(fdatasync.c FS FAILP3)
add_wasilibc_test(fdopen.c FS FAILP3)
add_wasilibc_test(feof.c FS FAILP3)
add_wasilibc_test(file_permissions.c FS FAILP3)
add_wasilibc_test(file_nonblocking.c FS FAILP3)
add_wasilibc_test(fseek.c FS FAILP3)
add_wasilibc_test(fstat.c FS FAILP3)
add_wasilibc_test(fsync.c FS FAILP3)
add_wasilibc_test(ftruncate.c FS FAILP3)
add_wasilibc_test(fts.c FS FAILP3)
add_wasilibc_test(fwscanf.c FS FAILP3)
add_wasilibc_test(getentropy.c)
add_wasilibc_test(hello.c PASS_REGULAR_EXPRESSION "Hello, World!")
add_wasilibc_test(ioctl.c FS FAILP3)
add_wasilibc_test(isatty.c FS FAILP3)
add_wasilibc_test(link.c FS FAILP3)
add_wasilibc_test(lseek.c FS FAILP3)
add_wasilibc_test(memchr.c LDFLAGS -Wl,--stack-first -Wl,--initial-memory=327680)
add_wasilibc_test(memcmp.c LDFLAGS -Wl,--stack-first -Wl,--initial-memory=327680)
add_wasilibc_test(opendir.c FS FAILP3 ARGV /)
add_wasilibc_test(open_relative_path.c FS FAILP3 ARGV /)
add_wasilibc_test(pipe.c)
add_wasilibc_test(poll.c FS FAILP3)
add_wasilibc_test(preadvwritev.c FS FAILP3)
add_wasilibc_test(preadwrite.c FS FAILP3)
add_wasilibc_test(readlink.c FS FAILP3)
add_wasilibc_test(readv.c FS FAILP3)
add_wasilibc_test(rename.c FS FAILP3)
add_wasilibc_test(rmdir.c FS FAILP3)
add_wasilibc_test(scandir.c FS FAILP3)
add_wasilibc_test(stat.c FS FAILP3)
add_wasilibc_test(stdio.c FS)
add_wasilibc_test(strchrnul.c LDFLAGS -Wl,--stack-first -Wl,--initial-memory=327680)
add_wasilibc_test(strlen.c LDFLAGS -Wl,--stack-first -Wl,--initial-memory=327680)
add_wasilibc_test(strptime.c)
add_wasilibc_test(strrchr.c LDFLAGS -Wl,--stack-first -Wl,--initial-memory=327680)
add_wasilibc_test(time_and_times.c
CFLAGS -D_WASI_EMULATED_PROCESS_CLOCKS
LDFLAGS -lwasi-emulated-process-clocks)
add_wasilibc_test(time.c)
add_wasilibc_test(utime.c FS FAILP3)
add_wasilibc_test(rewinddir.c FS FAILP3)
add_wasilibc_test(seekdir.c FS FAILP3)
add_wasilibc_test(usleep.c)
add_wasilibc_test(nanosleep.c)
add_wasilibc_test(write.c FS FAILP3)
if (TARGET_TRIPLE MATCHES "-threads")
add_wasilibc_test(busywait.c)
add_wasilibc_test(pthread_cond_busywait.c)
add_wasilibc_test(pthread_tsd_busywait.c)
add_wasilibc_test(pthread_mutex_busywait.c)
endif()
# ========= sockets-related tests ===============================
if (NOT (WASI STREQUAL "p1"))
add_wasilibc_test(poll-nonblocking-socket.c NETWORK FAILP3)
add_wasilibc_test(setsockopt.c NETWORK FAILP3)
add_wasilibc_test(sockets-nonblocking-udp.c NETWORK FAILP3)
add_wasilibc_test(sockets-nonblocking-multiple.c NETWORK FAILP3)
add_wasilibc_test(sockets-nonblocking-udp-multiple.c NETWORK FAILP3)
# TODO: flaky tests
# add_wasilibc_test(sockets-nonblocking.c NETWORK)
# add_wasilibc_test(sockets-nonblocking-udp-no-connection.c NETWORK)
# Define executables for server/client tests, and they're paired together in
# various combinations below for various tests.
function(add_sockets_test_executable path)
cmake_path(REPLACE_EXTENSION path wasm OUTPUT_VARIABLE exe_name)
set(path "src/${path}")
add_test_executable(${exe_name} ${path})
endfunction()
add_sockets_test_executable(sockets-client.c)
add_sockets_test_executable(sockets-client-handle-hangups.c)
add_sockets_test_executable(sockets-client-hangup-after-connect.c)
add_sockets_test_executable(sockets-client-hangup-after-sending.c)
add_sockets_test_executable(sockets-client-hangup-while-receiving.c)
add_sockets_test_executable(sockets-client-hangup-while-sending.c)
add_sockets_test_executable(sockets-client-udp-blocking.c)
add_sockets_test_executable(sockets-multiple-client.c)
add_sockets_test_executable(sockets-server.c)
add_sockets_test_executable(sockets-server-handle-hangups.c)
add_sockets_test_executable(sockets-server-hangup-before-recv.c)
add_sockets_test_executable(sockets-server-hangup-before-send.c)
add_sockets_test_executable(sockets-server-hangup-during-recv.c)
add_sockets_test_executable(sockets-server-hangup-during-send.c)
add_sockets_test_executable(sockets-server-udp-blocking.c)
add_sockets_test_executable(sockets-multiple-server.c)
function(sockets_test test_name client server)
set(options FAILP3)
set(oneValueArgs NCLIENTS)
set(multiValueArgs)
cmake_parse_arguments(PARSE_ARGV 1 arg "${options}" "${oneValueArgs}" "${multiValueArgs}")
add_test(
NAME "${test_name}"
COMMAND
${CMAKE_COMMAND}
-DENGINE=${ENGINE}
-DSERVER=$<TARGET_FILE:${server}>
-DCLIENT=$<TARGET_FILE:${client}>
-DNCLIENTS=${arg_NCLIENTS}
-P ${CMAKE_CURRENT_SOURCE_DIR}/socket-test.cmake
)
set_tests_properties(${test_name} PROPERTIES RESOURCE_LOCK socket-test)
if (arg_FAILP3 AND (WASI STREQUAL "p3"))
set_tests_properties(${test_name} PROPERTIES WILL_FAIL TRUE)
endif()
endfunction()
sockets_test(sockets sockets-client.wasm sockets-server.wasm FAILP3)
sockets_test(sockets-udp-blocking sockets-client-udp-blocking.wasm
sockets-server-udp-blocking.wasm FAILP3)
sockets_test(sockets-multiple sockets-multiple-client.wasm sockets-multiple-server.wasm
NCLIENTS 10 FAILP3)
# Various forms of client hangups
sockets_test(sockets-client-hangup-after-connect
sockets-client-hangup-after-connect.wasm sockets-server-handle-hangups.wasm
FAILP3)
sockets_test(sockets-client-hangup-while-sending
sockets-client-hangup-while-sending.wasm sockets-server-handle-hangups.wasm
FAILP3)
sockets_test(sockets-client-hangup-after-sending
sockets-client-hangup-after-sending.wasm sockets-server-handle-hangups.wasm
FAILP3)
sockets_test(sockets-client-hangup-while-receiving
sockets-client-hangup-while-receiving.wasm sockets-server-handle-hangups.wasm
FAILP3)
# Various forms of server hangups, including when there's no server at all
sockets_test(sockets-server-hangup-before-send
sockets-client-handle-hangups.wasm sockets-server-hangup-before-send.wasm
FAILP3)
sockets_test(sockets-server-hangup-during-send
sockets-client-handle-hangups.wasm sockets-server-hangup-during-send.wasm
FAILP3)
sockets_test(sockets-server-hangup-before-recv
sockets-client-handle-hangups.wasm sockets-server-hangup-before-recv.wasm
FAILP3)
sockets_test(sockets-server-hangup-during-recv
sockets-client-handle-hangups.wasm sockets-server-hangup-during-recv.wasm
FAILP3)
sockets_test(sockets-client-handle-hangups
sockets-client-handle-hangups.wasm hello.wasm
FAILP3)
endif()
# Flag some tests as failing in V8
set_tests_properties(hello.wasm PROPERTIES LABELS v8fail)
set_tests_properties(clock_nanosleep.wasm PROPERTIES LABELS v8fail)
# Skip test that uses environment variables
set_tests_properties(external_env.wasm PROPERTIES LABELS v8fail)
# Skip test that uses command-line arguments
set_tests_properties(argv_two_args.wasm PROPERTIES LABELS v8fail)
if (TARGET_TRIPLE MATCHES "-threads")
# atomic.wait32 can't be executed on the main thread
set_tests_properties(libc_test_functional_pthread_mutex.wasm PROPERTIES LABELS v8fail)
set_tests_properties(libc_test_functional_pthread_tsd.wasm PROPERTIES LABELS v8fail)
# "poll_oneoff" can't be implemented in the browser
set_tests_properties(libc_test_functional_pthread_cond.wasm PROPERTIES LABELS v8fail)
endif()
# If enabled add a copy of Python which is built against `wasi-libc` and run
# its tests.
if (PYTHON_TESTS)
find_program(PYTHON python3 python REQUIRED)
find_program(MAKE make REQUIRED)
set(flags "--target=${TARGET_TRIPLE} --sysroot=${SYSROOT}")
ExternalProject_Add(
python
# Pin the source to 3.14 for now, but this is fine to change later if
# tests still pass.
URL https://github.com/python/cpython/archive/refs/tags/v3.14.0.tar.gz
# Python as-is doesn't pass with the current wasi-libc. For example
# wasi-libc now provides dummy pthread symbols which tricks Python into
# thinking it can spawn threads, so a patch is needed for a WASI-specific
# clause to disable that.
#
# More generally though this is an escape hatch to apply any other
# changes as necessary without trying to upstream the patches to Python
# itself. The patch is most "easily" generated by checking out cpython
# at the `v3.14.0` tag, applying the existing patch, editing source,
# and then regenerating the patch.
PATCH_COMMAND
patch -Np1 < ${CMAKE_CURRENT_SOURCE_DIR}/scripts/cpython3.14.patch
# The WASI build of Python looks to need an in-source build, or otherwise I
# couldn't figure out an out-of-tree build.
BUILD_IN_SOURCE ON
# These steps take a long time, so stream the output to the terminal instead
# of capturing it by default.
USES_TERMINAL_CONFIGURE ON
USES_TERMINAL_BUILD ON
USES_TERMINAL_TEST ON
# The following steps are copied from Python's own CI for managing WASI.
# In general I don't know what they do. If Python's CI changes these
# should change as well.
#
# More information about building Python for WASI can be found at
# https://devguide.python.org/getting-started/setup-building/#wasi
CONFIGURE_COMMAND
${PYTHON} <SOURCE_DIR>/Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug
COMMAND
${PYTHON} <SOURCE_DIR>/Tools/wasm/wasi make-build-python
BUILD_COMMAND
${CMAKE_COMMAND}
-E env CFLAGS=${flags} LDFLAGS=${flags} --
${PYTHON} <SOURCE_DIR>/Tools/wasm/wasi configure-host -- --config-cache
COMMAND
${CMAKE_COMMAND}
-E env CFLAGS=${flags} LDFLAGS=${flags} --
${PYTHON} <SOURCE_DIR>/Tools/wasm/wasi make-host
COMMAND
${CMAKE_COMMAND}
-E env CFLAGS=${flags} LDFLAGS=${flags} --
${MAKE} --directory cross-build/wasm32-wasip1 pythoninfo
INSTALL_COMMAND ""
TEST_COMMAND
${CMAKE_COMMAND}
-E env CFLAGS=${flags} LDFLAGS=${flags} --
${MAKE} --directory cross-build/wasm32-wasip1 test
)
ExternalProject_Add_StepDependencies(python configure sysroot)
endif()