Skip to content

Commit

Permalink
fix: Fix the libbacktrace cfg for nicer backtraces (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibordp authored Oct 13, 2024
1 parent 1fc7262 commit 347daea
Show file tree
Hide file tree
Showing 4 changed files with 1,686 additions and 1,795 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ WORKDIR /build/libbacktrace
RUN git clone https://github.com/ianlancetaylor/libbacktrace.git .
RUN ./configure && make -j8
WORKDIR /build/minicoro
RUN curl -Ss -o minicoro.h https://raw.githubusercontent.com/edubart/minicoro/main/minicoro.h
RUN gcc -O0 -g3 -fPIE -rdynamic -DMINICORO_IMPL -xc -c -o minicoro.o minicoro.h && \
RUN curl -Ss -o minicoro.c https://raw.githubusercontent.com/edubart/minicoro/main/minicoro.h
RUN gcc -O0 -g3 -fPIE -rdynamic -DMINICORO_IMPL -DNDEBUG -c -o minicoro.o minicoro.c && \
ar rcs libminicoro.a minicoro.o

FROM ubuntu:24.04 as combined
Expand Down Expand Up @@ -70,7 +70,7 @@ RUN /usr/bin/alumina-boot \
--sysroot /usr/include/alumina \
--debug \
--cfg threading \
--cfg use_libbacktrace \
--cfg libbacktrace \
--cfg coroutines \
-Zast-only \
-Zdump-ast=/usr/include/alumina/sysroot.ast
Expand All @@ -80,7 +80,7 @@ RUN /usr/bin/alumina-boot \
--debug \
--cfg test \
--cfg threading \
--cfg use_libbacktrace \
--cfg libbacktrace \
--cfg coroutines \
-Zast-only \
-Zdump-ast=/usr/include/alumina/sysroot-test.ast
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@mui/material": "^6.0.2",
"adm-zip": "^0.5.16",
"ansi-to-html": "^0.7.2",
"monaco-editor": "^0.51.0",
"next": "14.2.8",
"monaco-editor": "^0.52.0",
"next": "14.2.15",
"next-pwa": "^5.6.0",
"notistack": "^3.0.1",
"react": "18.3.1",
Expand All @@ -30,12 +30,12 @@
},
"devDependencies": {
"@types/adm-zip": "^0.5.3",
"@types/node": "22.5.4",
"@types/react": "18.3.5",
"@types/node": "22.7.5",
"@types/react": "18.3.11",
"@types/temp": "^0.9.3",
"@types/tmp": "^0.2.5",
"eslint": "9.9.1",
"eslint-config-next": "14.2.8",
"typescript": "5.5.4"
"eslint": "9.12.0",
"eslint-config-next": "14.2.15",
"typescript": "5.6.3"
}
}
4 changes: 2 additions & 2 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ touch compiler.output

if [[ -v TEST ]]; then
minimum_security_prison $ALUMINA_BOOT \
$alumina_extra_args --debug --cfg threading --cfg use_libbacktrace --cfg coroutines --cfg test \
$alumina_extra_args --debug --cfg threading --cfg libbacktrace --cfg coroutines --cfg test \
playground=program.alu \
-o program.c &>> compiler.output
extra_env="-E CLICOLOR_FORCE=1"
else
minimum_security_prison $ALUMINA_BOOT \
$alumina_extra_args --debug --cfg threading --cfg use_libbacktrace --cfg coroutines \
$alumina_extra_args --debug --cfg threading --cfg libbacktrace --cfg coroutines \
playground=program.alu \
-o program.c &>> compiler.output
extra_env=""
Expand Down
Loading

0 comments on commit 347daea

Please sign in to comment.