Compiling Common Lisp to an executable

Making hello.exe: * (defun main () (print “hello”)) MAIN * (sb-ext:save-lisp-and-die “hello.exe” :toplevel #’main :executable t) [undoing binding stack and other enclosing state… done] [saving current Lisp image into hello.exe: writing 3160 bytes from the read-only space at 0x22000000 writing 2592 bytes from the static space at 0x22100000 writing 30134272 bytes from the dynamic space …

Read more

With cmake, how would you disable in-source builds?

CMake has two undocumented options: CMAKE_DISABLE_SOURCE_CHANGES and CMAKE_DISABLE_IN_SOURCE_BUILD cmake_minimum_required (VERSION 2.8) # add this options before PROJECT keyword set(CMAKE_DISABLE_SOURCE_CHANGES ON) set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) project (HELLO) add_executable (hello hello.cxx) – andrew@manchester:~/src% cmake . CMake Error at /usr/local/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:160 (FILE): file attempted to write a file: /home/andrew/src/CMakeFiles/CMakeOutput.log into a source directory. /home/selivanov/cmake-2.8.8/Source/cmMakefile.cxx bool cmMakefile::CanIWriteThisFile(const char* fileName) { if ( …

Read more