From 69650e29e7fafbc50647dc90c52c120ffcd00015 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 28 Sep 2024 22:15:46 -0400 Subject: [PATCH] test file output for binary --- .github/workflows/cmake-single-platform-linux.yml | 4 ++-- src/compiler/CodeGen.cpp | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-single-platform-linux.yml b/.github/workflows/cmake-single-platform-linux.yml index 29710b1..b8a4e5c 100644 --- a/.github/workflows/cmake-single-platform-linux.yml +++ b/.github/workflows/cmake-single-platform-linux.yml @@ -76,8 +76,8 @@ jobs: - name: Make LexerTest Executable run: chmod +x ${{ github.workspace }}/build/LexerTest - - name: Output Wasmer directory - run: ls -laR ${{ github.workspace }}/lib/wasmer + - name: Output LexerText directory + run: file ${{ github.workspace }}/build/LexerTest - name: Run Lexer Test working-directory: ${{ github.workspace }}/build diff --git a/src/compiler/CodeGen.cpp b/src/compiler/CodeGen.cpp index c6b48fd..35db285 100644 --- a/src/compiler/CodeGen.cpp +++ b/src/compiler/CodeGen.cpp @@ -30,6 +30,9 @@ #include #endif +#pragma push_macro("RETURN") +#undef RETURN + namespace Theta { BinaryenModuleRef CodeGen::generateWasmFromAST(shared_ptr ast) { BinaryenModuleRef module = initializeWasmModule(); @@ -1405,3 +1408,5 @@ namespace Theta { return stream.str(); } } + +#pragma pop_macro("RETURN")