File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -375,13 +375,15 @@ macro(COMPILE)
375
375
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /${name}.py
376
376
VERBATIM )
377
377
add_library (${name} OBJECT ${name} .o )
378
+ set_target_properties (${name} PROPERTIES LINKER_LANGUAGE C )
378
379
elseif (KIND STREQUAL "c" )
379
380
add_custom_command (
380
381
OUTPUT ${name} .c
381
382
COMMAND ${LPYTHON} ${extra_args} --disable-main --show-c ${CMAKE_CURRENT_SOURCE_DIR} /${name}.py > ${name} .c
382
383
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR} /${name}.py
383
384
VERBATIM )
384
385
add_library (${name} OBJECT ${name} .c )
386
+ set_target_properties (${name} PROPERTIES LINKER_LANGUAGE C )
385
387
target_link_libraries (${name} lpython_rtlib )
386
388
elseif (KIND STREQUAL "cpython" )
387
389
# CPython test
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def run_test(backend):
25
25
run_cmd (f"mkdir { BASE_DIR } /_lpython-tmp-test-{ backend } " , cwd = BASE_DIR )
26
26
cwd = f"{ BASE_DIR } /_lpython-tmp-test-{ backend } "
27
27
run_cmd (f"cmake -DKIND={ backend } -DFAST={ fast_tests } -DPYTHON_LIBS_REQ={ python_libs_req } .." , cwd = cwd )
28
- run_cmd (f"make -j { DEFAULT_THREADS_TO_USE } " , cwd = cwd )
28
+ run_cmd (f"cmake --build . --parallel { DEFAULT_THREADS_TO_USE } " , cwd = cwd )
29
29
run_cmd (f"ctest -j{ DEFAULT_THREADS_TO_USE } --output-on-failure" ,
30
30
cwd = cwd )
31
31
You can’t perform that action at this time.
0 commit comments