forked from faasm/cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.envs
More file actions
37 lines (31 loc) · 1.59 KB
/
Makefile.envs
File metadata and controls
37 lines (31 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# IMPORTANT: this file is used by lots of submodules/
# projects so be careful **NOT** to set any global variables
# like CC/CXX. Keep it generic
#
export WASM_SYSROOT=/usr/local/faasm/llvm-sysroot
export WASM_TOOLCHAIN_BIN=/usr/local/faasm/toolchain/bin
export WASM_CC=$(WASM_TOOLCHAIN_BIN)/clang
export WASM_CXX=$(WASM_TOOLCHAIN_BIN)/clang++
export WASM_CPP=$(WASM_TOOLCHAIN_BIN)/clang-cpp
export WASM_AR=$(WASM_TOOLCHAIN_BIN)/llvm-ar
export WASM_NM=$(WASM_TOOLCHAIN_BIN)/llvm.nm
export WASM_RANLIB=$(WASM_TOOLCHAIN_BIN)/llvm-ranlib
export WASM_LD=$(WASM_TOOLCHAIN_BIN)/wasm-ld
export WASM_LDSHARED=$(WASM_TOOLCHAIN_BIN)/wasm-ld
export WASM_LDFLAGS="-Xlinker --stack-first -Xlinker --no-check-features"
export WASM_BUILD=wasm32
export WASM_HOST=wasm32-unknown-wasi
export WASM_HOST_UNKNOWN=wasm32-unknown-unknown
# Note potential performance gains from unimplemented-simd128 here.
# May not be necessary in future.
# 23/09/2020 - Remove SIMD
# export WASM_CFLAGS_NO_QUOTES=-O3 --sysroot=$(WASM_SYSROOT) -msimd128 -munimplemented-simd128 -mno-atomics -D__faasm
export WASM_CFLAGS_NO_QUOTES=-O3 --sysroot=$(WASM_SYSROOT) -mno-atomics -D__faasm
export WASM_CXXFLAGS_NO_QUOTES=$(WASM_CFLAGS_NO_QUOTES)
export WASM_CFLAGS="$(WASM_CFLAGS_NO_QUOTES)"
export WASM_CXXFLAGS="$(WASM_CXXFLAGS_NO_QUOTES)"
export WASM_SHARED_FLAGS_NO_QUOTES=-D__wasi__ -nostdlib -nostlib++ -fPIC --target=wasm32-unknown-emscripten -Xlinker --no-entry -Xlinker --shared -Xlinker --export-all -Xlinker --no-gc-sections
export WASM_SHARED_FLAGS="$(WASM_SHARED_FLAGS_NO_QUOTES)"
# Note - order very important here
export WASM_BLAS_LIBS="lapack blas f2c"