lib_wasi_threads.cmake 459 B

123456789101112
  1. # Copyright (C) 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. set (LIB_WASI_THREADS_DIR ${CMAKE_CURRENT_LIST_DIR})
  4. add_definitions (-DWASM_ENABLE_LIB_WASI_THREADS=1 -DWASM_ENABLE_HEAP_AUX_STACK_ALLOCATION=1)
  5. include_directories(${LIB_WASI_THREADS_DIR})
  6. set (LIB_WASI_THREADS_SOURCE
  7. ${LIB_WASI_THREADS_DIR}/lib_wasi_threads_wrapper.c
  8. ${LIB_WASI_THREADS_DIR}/tid_allocator.c)