forked from WasmEdge/WasmEdge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add static tool options * Add rpath to executables Signed-off-by: Shen-Ta Hsieh <[email protected]>
- Loading branch information
Showing
14 changed files
with
781 additions
and
608 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
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2019-2022 Second State INC | ||
|
||
//===-- wasmedge/driver/compiler.h - Compiler entrypoint ------------------===// | ||
// | ||
// Part of the WasmEdge Project. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
/// | ||
/// \file | ||
/// This file contents the entrypoint for the compiler executable. | ||
/// | ||
//===----------------------------------------------------------------------===// | ||
#pragma once | ||
|
||
namespace WasmEdge { | ||
namespace Driver { | ||
|
||
int Compiler(int Argc, const char *Argv[]) noexcept; | ||
|
||
} // namespace Driver | ||
} // namespace WasmEdge |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2019-2022 Second State INC | ||
|
||
//===-- wasmedge/driver/tool.h - Tool entrypoint --------------------------===// | ||
// | ||
// Part of the WasmEdge Project. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
/// | ||
/// \file | ||
/// This file contents the entrypoint for the tooling executable. | ||
/// | ||
//===----------------------------------------------------------------------===// | ||
#pragma once | ||
|
||
namespace WasmEdge { | ||
namespace Driver { | ||
|
||
int Tool(int Argc, const char *Argv[]) noexcept; | ||
|
||
} // namespace Driver | ||
} // namespace WasmEdge |
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
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,33 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# SPDX-FileCopyrightText: 2019-2022 Second State INC | ||
|
||
wasmedge_add_library(wasmedgeDriver | ||
compiler.cpp | ||
tool.cpp | ||
) | ||
|
||
if(WASMEDGE_BUILD_AOT_RUNTIME) | ||
target_link_libraries(wasmedgeDriver | ||
PRIVATE | ||
wasmedgeLoader | ||
wasmedgeCommon | ||
wasmedgePO | ||
wasmedgeVM | ||
wasmedgeAOT | ||
) | ||
else() | ||
target_link_libraries(wasmedgeDriver | ||
PRIVATE | ||
wasmedgeLoader | ||
wasmedgeCommon | ||
wasmedgePO | ||
wasmedgeVM | ||
) | ||
endif() | ||
|
||
if(WASMEDGE_BUILD_AOT_RUNTIME) | ||
target_compile_definitions(wasmedgeDriver | ||
PRIVATE | ||
-DWASMEDGE_BUILD_AOT_RUNTIME | ||
) | ||
endif() |
Oops, something went wrong.