WONKY



LOG | FILES | OVERVIEW


F diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt
add_custom_target(test DEPENDS wobler wobler_assert)
add_custom_command(TARGET test POST_BUILD COMMAND wobler ARGS ${WOBLER_DUMP_LOG} WORKING_DIRECTORY ${TEST_DIR} VERBATIM)
+
+ add_custom_command(TARGET test PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/tests ${CMAKE_BINARY_DIR})
+ add_custom_command(TARGET test PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/tests ${CMAKE_BINARY_DIR})
+
+ file(COPY ${CMAKE_SOURCE_DIR}/tools/wsh DESTINATION ${CMAKE_BINARY_DIR})
+
+
F diff --git a/tools/wsh b/tools/wsh new file mode 100755 --- /dev/null +++ b/tools/wsh
+ #!/bin/sh
+ ./wonky $1 > a.asm
+ nasm a.asm -f elf64 -o a.o
+ ld -m elf_x86_64 -L/lib/ -L/usr/lib/ -I /lib64/ld-linux-x86-64.so.2 /usr/lib/x86_64-linux-gnu/crt1.o /usr/lib/x86_64-linux-gnu/crti.o -lc /usr/lib/x86_64-linux-gnu/crtn.o a.o -o a
+ rm a.o