# # Tetrodotoxin
# Copyright (c) 2023-present Matt Kaes and contributors

common --symlink_prefix=.bin/
# Every owned target participates in a loaded extension, including the runtime.
build --copt=-fPIC
build --copt=-DPERI_LINUX
build --copt=-DPERI_EDITOR
build --host_copt=-DPERI_LINUX
build --host_copt=-DPERI_DEBUG
build:debug --compilation_mode=dbg
build:debug --copt=-DPERI_DEBUG
build:release --compilation_mode=opt
build:release --copt=-O3
build:release --copt=-DPERI_RELEASE
build:cuda --define=godot_cuda=1
test --test_output=errors
run --run_in_cwd

# WebAssembly uses its own native pointer and callable profile. SIMD is supplied
# through Emscripten's intrinsic compatibility headers for the shared runtime.
build:web --copt=-UPERI_LINUX
build:web --cxxopt=-std=c++2c
build:web --copt=-mavx2
build:web --copt=-msimd128
