File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ macro(RUN_UTIL RUN_FAIL RUN_NAME RUN_FILE_NAME RUN_LABELS RUN_EXTRAFILES RUN_NOM
311
311
endmacro (RUN_UTIL)
312
312
313
313
macro (RUN)
314
- set (options FAIL NOFAST NOMOD ENABLE_CPYTHON LINK_NUMPY)
314
+ set (options FAIL NOFAST NOMOD ENABLE_CPYTHON LINK_NUMPY NO_WARNINGS )
315
315
set (oneValueArgs NAME IMPORT_PATH COPY_TO_BIN REQ_PY_VER)
316
316
set (multiValueArgs LABELS EXTRAFILES)
317
317
cmake_parse_arguments (RUN "${options} " "${oneValueArgs} "
@@ -328,6 +328,10 @@ macro(RUN)
328
328
set (RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} --enable-cpython)
329
329
endif ()
330
330
331
+ if (RUN_NO_WARNINGS)
332
+ set (RUN_EXTRA_ARGS ${RUN_EXTRA_ARGS} --no -warnings)
333
+ endif ()
334
+
331
335
if (RUN_IMPORT_PATH)
332
336
# Only one import path supported for now
333
337
# Later add support for multiple import paths by looping over and appending to extra args
@@ -607,7 +611,7 @@ RUN(NAME test_os LABELS cpython llvm c NOFAST)
607
611
RUN(NAME test_builtin LABELS cpython llvm c)
608
612
RUN(NAME test_builtin_abs LABELS cpython llvm c)
609
613
RUN(NAME test_builtin_bool LABELS cpython llvm c)
610
- RUN(NAME test_builtin_pow LABELS cpython llvm c)
614
+ RUN(NAME test_builtin_pow LABELS cpython llvm c NO_WARNINGS )
611
615
RUN(NAME test_builtin_int LABELS cpython llvm c)
612
616
RUN(NAME test_builtin_len LABELS cpython llvm c)
613
617
RUN(NAME test_builtin_str LABELS cpython llvm c)
You can’t perform that action at this time.
0 commit comments