set(CMAKE_C_CREATE_PREPROCESSED_SOURCE " -E > ") set(CMAKE_C_CREATE_ASSEMBLY_SOURCE " -S -o ") set(CMAKE_CXX_CREATE_STATIC_LIBRARY " -ar qc ") set(CMAKE_C_CREATE_STATIC_LIBRARY " -ar qc ") set(CMAKE_EXECUTABLE_RPATH_LINK_C_FLAG "-Wl,-rpath-link,") set(CMAKE_EXECUTABLE_RUNTIME_C_FLAG "-Wl,-rpath,") set(CMAKE_EXECUTABLE_RUNTIME_C_FLAG_SEP ":") set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O1") set(CMAKE_C_FLAGS_MINSIZEREL_INIT "-O1") set(CMAKE_C_FLAGS_RELEASE_INIT "-O1") find_program(CMAKE_C_COMPILER tcc) find_program(CMAKE_AR tcc) if(CMAKE_VERSION VERSION_LESS 3.10) execute_process(COMMAND ${CMAKE_UNAME} -m OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET OUTPUT_VARIABLE OS_PLATFORM) execute_process(COMMAND ${CMAKE_UNAME} -s OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET OUTPUT_VARIABLE OS_NAME) else() cmake_host_system_information(RESULT OS_PLATFORM QUERY OS_PLATFORM) cmake_host_system_information(RESULT OS_NAME QUERY OS_NAME) endif() if(DEFINED ENV{ANDROID_ROOT} AND EXISTS $ENV{ANDROID_ROOT}) string(TOLOWER ${OS_PLATFORM}-${OS_NAME}-android CMAKE_LIBRARY_ARCHITECTURE) elseif(UNIX) string(TOLOWER ${OS_PLATFORM}-${OS_NAME}-gnu CMAKE_LIBRARY_ARCHITECTURE) endif() if(CMAKE_TOOLCHAIN_FILE) endif()