diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92649de..726c99d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,6 @@ jobs: - name: wamrc run: | - cd wamr/wamr-compiler mkdir build cd build cmake .. @@ -37,7 +36,7 @@ jobs: name: wamrc-linux compression-level: 9 path: | - wamr/wamr-compiler/build/wamrc + build/wamr/wamr-compiler/wamrc windows: name: windows @@ -64,7 +63,6 @@ jobs: - name: wamrc shell: bash run: | - cd wamr/wamr-compiler mkdir build cd build cmake .. @@ -76,4 +74,4 @@ jobs: name: wamrc-windows compression-level: 9 path: | - wamr/wamr-compiler/build/Release/wamrc.exe + build/wamr/wamr-compiler/Release/wamrc.exe diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4da4b1d --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +/build* +/Win32 +/x64 +/.vs +/out +CMakeLists.txt.user +CMakeSettings.json +*~ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..58ea501 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 3.22) + +project(wamrc LANGUAGES C ASM CXX) + +set(WAMR_BUILD_DEBUG_AOT 0) +set(WAMR_BUILD_LIBC_BUILTIN 1) +set(WAMR_BUILD_LIBC_UVWASI 0) +set(WAMR_BUILD_LIBC_WASI 0) +set(WAMR_BUILD_LIB_PTHREAD 0) +set(WAMR_BUILD_LIB_WASI_THREADS 0) + +add_subdirectory("wamr/wamr-compiler") diff --git a/wamr b/wamr index c85bada..49c9fa3 160000 --- a/wamr +++ b/wamr @@ -1 +1 @@ -Subproject commit c85bada2a9c85bc80f4c1a6baa7cefb662013eb4 +Subproject commit 49c9fa31da64de26f3bf4b0e65c4384b57ca4907