Compare commits
2 Commits
d7dc141874
...
17d5485a39
| Author | SHA1 | Date | |
|---|---|---|---|
| 17d5485a39 | |||
| f725beb433 |
27
aux/devel.sh
27
aux/devel.sh
@@ -2,21 +2,22 @@
|
||||
|
||||
set -xe
|
||||
|
||||
debugopt=""
|
||||
|
||||
if [ "$1" = "debug" ]; then
|
||||
make -B all_kernel buildtype=debug
|
||||
else
|
||||
make -B all_kernel
|
||||
debugopt="buildtype=debug"
|
||||
fi
|
||||
|
||||
make -B all_libsystem
|
||||
make -B all_liballoc
|
||||
make -B all_libprocess
|
||||
make -B all_libterminal
|
||||
make -B all_libstring
|
||||
make -B all_libkb
|
||||
make -B all_libaux
|
||||
make -B all_libarena
|
||||
make -B all_libioutil
|
||||
make -B all_apps
|
||||
make -B all_kernel "$debugopt"
|
||||
make -B all_libsystem "$debugopt"
|
||||
make -B all_liballoc "$debugopt"
|
||||
make -B all_libprocess "$debugopt"
|
||||
make -B all_libterminal "$debugopt"
|
||||
make -B all_libstring "$debugopt"
|
||||
make -B all_libkb "$debugopt"
|
||||
make -B all_libaux "$debugopt"
|
||||
make -B all_libarena "$debugopt"
|
||||
make -B all_libioutil "$debugopt"
|
||||
make -B all_apps "$debugopt"
|
||||
make -B all_dist
|
||||
./aux/limine_iso_amd64.sh
|
||||
|
||||
@@ -85,7 +85,7 @@ void edit_start (const char* file_path, const char* text) {
|
||||
|
||||
terminal_dimensions (&cols, &rows);
|
||||
|
||||
mprintf (ANSIQ_SCR_SAVE ANSIQ_SCR_CLR_ALL ANSIQ_CUR_INVISIBLE);
|
||||
mprintf (ANSIQ_SCR_CLR_ALL ANSIQ_CUR_INVISIBLE);
|
||||
|
||||
bool edit_run = true;
|
||||
|
||||
@@ -227,7 +227,7 @@ void edit_start (const char* file_path, const char* text) {
|
||||
arena_reset (&temp_arena);
|
||||
}
|
||||
|
||||
mprintf (ANSIQ_SCR_CLR_ALL ANSIQ_CUR_VISIBLE ANSIQ_SCR_RESTORE);
|
||||
mprintf (ANSIQ_SCR_CLR_ALL ANSIQ_CUR_VISIBLE);
|
||||
|
||||
arena_destroy (&temp_arena);
|
||||
|
||||
@@ -237,4 +237,6 @@ void edit_start (const char* file_path, const char* text) {
|
||||
free (line->gb.buffer);
|
||||
free (line);
|
||||
}
|
||||
|
||||
memset (&editor, 0, sizeof (editor));
|
||||
}
|
||||
|
||||
@@ -5,9 +5,15 @@ cflags += -nostdinc \
|
||||
-std=c11 \
|
||||
-pedantic \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
-ffunction-sections \
|
||||
-fdata-sections
|
||||
-Wextra
|
||||
|
||||
ifeq ($(buildtype),debug)
|
||||
cflags += -O0 -g
|
||||
endif
|
||||
|
||||
ifeq ($(buildtype),release)
|
||||
cflags += -ffunction-sections -fdata-sections -Oz
|
||||
endif
|
||||
|
||||
cflags += -isystem ../include
|
||||
|
||||
@@ -15,6 +21,14 @@ ldflags += -ffreestanding \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fuse-ld=lld \
|
||||
-static \
|
||||
-Wl,--gc-sections \
|
||||
-static
|
||||
|
||||
ifeq ($(buildtype),debug)
|
||||
ldflags += -g
|
||||
endif
|
||||
|
||||
ifeq ($(buildtype),release)
|
||||
ldflags += -Wl,--gc-sections \
|
||||
-Wl,--strip-all \
|
||||
-flto
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user