Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Compile using Xahau Repo #32

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dangell7
Copy link
Contributor

This PR makes the hooks-compiler use the xahaud repo for building the hooks. This means that it will use the macros and the guard checker inside the xahaud repo.

@dangell7 dangell7 mentioned this pull request Dec 13, 2023
@dangell7 dangell7 changed the title Compile using Xahau Repo [DO NOT MERGE] Compile using Xahau Repo May 20, 2024
@dangell7 dangell7 marked this pull request as draft January 22, 2025 10:13

if [ -d /app/clang/includes ]
then
rm /app/clang/includes/*.h
else
mkdir -p /app/clang/includes
fi
cp clang/includes/*.h /app/clang/includes
cp clang/include/hook/*.h /app/clang/includes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cp clang/include/hook/*.h /app/clang/includes
cp clang/includes/hook/*.h /app/clang/includes

@@ -56,7 +56,7 @@ unzip bin.zip
```

- CD to docker folder `cd docker`
- Run `make c2wasm-api && make clangd && make wasi-sdk && make hook-cleaner`
- Run `make c2wasm-api && make clangd && make wasi-sdk && make hook-cleaner && make c2wasm-api/clang/includes/src/ripple/app/hook`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This executes the next Makefile, but this compilation is dependent on the local environment. This is useless if the local and container architectures are different.

c2wasm-api/clang/includes/src/ripple/app/hook/

guard_checker: guard_checker.cpp Guard.h Enum.h
	g++ -o guard_checker guard_checker.cpp --std=c++17 -g
install: guard_checker
	cp guard_checker /usr/bin/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants