<commit_before>PROJECT(test_m88k)

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIBCPU_RUNTIME_OUTPUT_DIRECTORY})
ADD_EXECUTABLE(test_m88k main.cpp)
TARGET_LINK_LIBRARIES(test_m88k cpu)

### Run88 
IF(NOT MSVC)
	INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/test/libnix/xec-compat/lib
						${CMAKE_SOURCE_DIR}/test/libnix/xec-compat/engine
						${CMAKE_SOURCE_DIR}/test/libnix/xec-compat/arch
						${CMAKE_SOURCE_DIR}/test/libnix/nix
						${CMAKE_SOURCE_DIR}/test/libnix
						${CMAKE_BINARY_DIR}/test/libnix/xec-compat
						${CMAKE_SOURCE_DIR}/test/libnix/obsd41/arch/m88k)

	ADD_EXECUTABLE(run_m88k run88.cpp loader.c)
	TARGET_LINK_LIBRARIES(run_m88k cpu obsd41)
ENDIF()

IF(APPLE AND NOT UNIVERSAL)
  IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
    # Ensure __PAGEZERO is 4GB and...
    TARGET_LINK_LIBRARIES(run_m88k "-Wl,-pagezero_size,0x100000000")
    # ...is readable and writeable.
    TARGET_LINK_LIBRARIES(run_m88k "-Wl,-segprot,__PAGEZERO,rw-,rw-")
  ENDIF()
ENDIF()
<commit_msg>Build run88k only on OS X for now.<commit_after>PROJECT(test_m88k)

SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIBCPU_RUNTIME_OUTPUT_DIRECTORY})
ADD_EXECUTABLE(test_m88k main.cpp)
TARGET_LINK_LIBRARIES(test_m88k cpu)

### Run88 
IF(APPLE)
	INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/test/libnix/xec-compat/lib
						${CMAKE_SOURCE_DIR}/test/libnix/xec-compat/engine
						${CMAKE_SOURCE_DIR}/test/libnix/xec-compat/arch
						${CMAKE_SOURCE_DIR}/test/libnix/nix
						${CMAKE_SOURCE_DIR}/test/libnix
						${CMAKE_BINARY_DIR}/test/libnix/xec-compat
						${CMAKE_SOURCE_DIR}/test/libnix/obsd41/arch/m88k)

	ADD_EXECUTABLE(run_m88k run88.cpp loader.c)
	TARGET_LINK_LIBRARIES(run_m88k cpu obsd41)
ENDIF()

IF(APPLE AND NOT UNIVERSAL)
  IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
    # Ensure __PAGEZERO is 4GB and...
    TARGET_LINK_LIBRARIES(run_m88k "-Wl,-pagezero_size,0x100000000")
    # ...is readable and writeable.
    TARGET_LINK_LIBRARIES(run_m88k "-Wl,-segprot,__PAGEZERO,rw-,rw-")
  ENDIF()
ENDIF()

{'fraction_non_alphanumeric': 0.11977573904179409, 'fraction_numerical': 0.03771661569826707, 'mean_word_length': 5.058641975308642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4005480', 'n_tokens_mistral': 978, 'n_tokens_neox': 818, 'n_words': 98}