Made relevant JS tests transpile to C ; [src/Layout.c]: print_css_node_rec(): print alignContent ; [src/Layout-test-utils.c]: add_failed_test(): Sets failed_test->next to NULL, otherwise the test crashes if there's one and only one failure ; Added type casts so that it can be compiled as C++ by MSVC on Windows ; [Makefile]: Added c_test_msvc target when running in Windows so that the test executable can be built and debugged with Visual Studio on Windows ;
This commit is contained in:
6
Makefile
6
Makefile
@@ -55,3 +55,9 @@ transpile_all: ./src/transpile.js
|
||||
debug:
|
||||
@gcc -std=c99 -ggdb $(FILES) -lm -o $(C_TEST_EXE) && $(LLDB) $(C_TEST_EXE)
|
||||
@rm $(C_TEST_EXE)
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
c_test_msvc: c
|
||||
@cl -nologo -Zi -Tpsrc/__tests__/Layout-test.c -Tpsrc/Layout.c -Tpsrc/Layout-test-utils.c -link -incremental:no -out:"$(C_TEST_EXE)" && "$(C_TEST_EXE)"
|
||||
@rm "$(C_TEST_EXE)" ./*.obj ./*.pdb
|
||||
endif
|
||||
|
Reference in New Issue
Block a user