-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: refactor Bazel configuration towards multiple runtime tests. (#…
…160) Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
- Loading branch information
Showing
8 changed files
with
160 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
build --enable_platform_specific_config | ||
|
||
build:linux --cxxopt=-std=c++17 | ||
# See https://bytecodealliance.github.io/wasmtime/c-api/ | ||
build:linux --linkopt=-lm | ||
build:linux --linkopt=-lpthread | ||
build:linux --linkopt=-ldl | ||
|
||
build:macos --cxxopt=-std=c++17 | ||
|
||
# TODO(mathetake): Windows build is not verified yet. | ||
# build:windows --cxxopt="/std:c++17" | ||
# See https://bytecodealliance.github.io/wasmtime/c-api/ | ||
# build:windows --linkopt="ws2_32.lib advapi32.lib userenv.lib ntdll.lib shell32.lib ole32.lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
config_setting( | ||
name = "runtime_v8", | ||
values = {"define": "runtime=v8"}, | ||
) | ||
|
||
config_setting( | ||
name = "runtime_wamr", | ||
values = {"define": "runtime=wamr"}, | ||
) | ||
|
||
config_setting( | ||
name = "runtime_wasmtime", | ||
values = {"define": "runtime=wasmtime"}, | ||
) | ||
|
||
config_setting( | ||
name = "runtime_wavm", | ||
values = {"define": "runtime=wavm"}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
def proxy_wasm_select_runtime_v8(xs): | ||
return select({ | ||
"@proxy_wasm_cpp_host//bazel:runtime_v8": xs, | ||
"//conditions:default": [], | ||
}) | ||
|
||
def proxy_wasm_select_runtime_wamr(xs): | ||
return select({ | ||
"@proxy_wasm_cpp_host//bazel:runtime_wamr": xs, | ||
"//conditions:default": [], | ||
}) | ||
|
||
def proxy_wasm_select_runtime_wasmtime(xs): | ||
return select({ | ||
"@proxy_wasm_cpp_host//bazel:runtime_wasmtime": xs, | ||
"//conditions:default": [], | ||
}) | ||
|
||
def proxy_wasm_select_runtime_wavm(xs): | ||
return select({ | ||
"@proxy_wasm_cpp_host//bazel:runtime_wavm": xs, | ||
"//conditions:default": [], | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters