A minimalistic programming language written in C89.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

35 satır
980 B

6 ay önce
6 ay önce
  1. cmake_minimum_required(VERSION 3.0)
  2. project(ink C)
  3. set(CMAKE_C_STANDARD 90)
  4. add_library(ink lib.c include/ink.h)
  5. # Uncomment to disable the redundant arithmetic
  6. # add_definitions(-DNOEXTRAARITHMETIC)
  7. # Uncomment to disable array types
  8. # add_definitions(-DNOARRAYLIB)
  9. # Uncomment to disable string literal
  10. # add_definitions(-DNOSTRINGLITERALS)
  11. # Ensures the interpreter doesn't use the standard C library functions
  12. # add_definitions(-DNOSTDLIB)
  13. # Removes several checks to improve performance in cases where ink is used as a bytecode
  14. # add_definitions(-DNOEXTRACHECKS)
  15. add_executable(ink_exe main.c)
  16. target_link_libraries(ink_exe PUBLIC ink)
  17. target_include_directories(ink PUBLIC include)
  18. if(MSVC)
  19. target_compile_options(ink PRIVATE /W4 /WX)
  20. else()
  21. target_compile_options(ink PRIVATE -Wall -Wextra -Wpedantic -Werror)
  22. endif()
  23. # Benchmark is broken since the addition to coroutines
  24. # add_executable(ink_bench bench.c)
  25. # target_link_libraries(ink_bench PUBLIC ink)