Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/run_all_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- uses: actions/checkout@v4
- name: build
run: |
./build_for_testing.sh
cp profile_template.cmake profile.cmake
./build.sh
working-directory: build
- name: build_integration_tests
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
*.DS_Store

profile.cmake
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
install_manifest.txt
Makefile
*.cmake
*.cache
!/build/profile_template.cmake

!/build/cmake

Expand Down
2 changes: 1 addition & 1 deletion build/build_for_release.sh → build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ rm -rf cmake
rm -f Makefile
rm -f cmake_install.cmake

cmake ../src -DCMAKE_BUILD_TYPE=Release -DSANITIZER=none -B .
cmake ../src -B .
make -B -j8
8 changes: 0 additions & 8 deletions build/build_for_testing.sh

This file was deleted.

4 changes: 4 additions & 0 deletions build/build_instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Create profile
- Copy the profile_template.cmake file and name it profile.cmake
- Configure the profile correctly
- Run build.sh
10 changes: 10 additions & 0 deletions build/profile_template.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set(CMAKE_BUILD_TYPE Debug)

add_compile_definitions(
# SWIFT_NET_DISABLE_REQUESTS # Compile source without request features (make_request, make_response)
SWIFT_NET_MEMORY_USAGE=5 # Multiplier of memory preallocated
)

set(SWIFT_NET_INTERNAL_TESTING ON) # Only used when debugging the library itself
set(SANITIZER "none") # (thread, address, undefined, none (no sanitizer))
set(BACKEND "pcap") # (pcap, dpdk)
4 changes: 0 additions & 4 deletions src/.clangd

This file was deleted.

192 changes: 0 additions & 192 deletions src/;

This file was deleted.

Loading
Loading