Compare commits
No commits in common. "99a9cd10f57649c11f8ff8a15b9c79bad45de45e" and "dbdab01a2cb0e49cfe0633314fa53d07d209064a" have entirely different histories.
99a9cd10f5
...
dbdab01a2c
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,5 +4,4 @@ test
|
||||
test.*
|
||||
*.dSYM
|
||||
compile_commands.json
|
||||
libwapp-build
|
||||
libwapp.so
|
||||
|
9
compile
9
compile
@ -30,11 +30,6 @@ SRC="\
|
||||
TEST_SRC="\
|
||||
$(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ") \
|
||||
"
|
||||
BUILD_DIR="libwapp-build/posix-$BUILD_TYPE"
|
||||
if [[ -d $BUILD_DIR ]]; then
|
||||
rm -rf $BUILD_DIR
|
||||
fi
|
||||
mkdir -p $BUILD_DIR
|
||||
|
||||
if [[ $BUILD_TYPE == "release" ]]; then
|
||||
CFLAGS+="-O3"
|
||||
@ -42,8 +37,8 @@ else
|
||||
CFLAGS+="-g -fsanitize=address -fsanitize=undefined"
|
||||
fi
|
||||
|
||||
OUT="$BUILD_DIR/libwapp.so"
|
||||
TEST_OUT="$BUILD_DIR/wapptest"
|
||||
OUT="libwapp.so"
|
||||
TEST_OUT="./wapptest"
|
||||
|
||||
# Compile tests
|
||||
if [[ $(echo $TEST_SRC | xargs) != "" ]]; then
|
||||
|
@ -40,7 +40,7 @@ void dirup(char *dst, u64 levels, const char *path) {
|
||||
--length;
|
||||
}
|
||||
|
||||
for (i64 i = length - 1; i >= 0; --i) {
|
||||
for (u64 i = length - 1; i >= 0; --i) {
|
||||
if (path[i] == path_sep) {
|
||||
++sep_count;
|
||||
end_index = i;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "tester.h"
|
||||
#include "aliases.h"
|
||||
#include "termcolour.h"
|
||||
#include "termcolour/termcolour.h"
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user