Fix build in opt mode

This commit is contained in:
Justine Tunney 2021-06-11 16:47:48 -07:00
parent a3ccc5af1f
commit 8b08e81a07
4 changed files with 10 additions and 0 deletions

View file

@ -4,6 +4,10 @@ if [ "$MODE" = dbg ]; then
exit # TODO exit # TODO
fi fi
if [ "$MODE" = opt ]; then
exit
fi
# smoke test userspace binary emulation # smoke test userspace binary emulation
CMD="o/$MODE/tool/build/blinkenlights.com.dbg o/$MODE/examples/hello.com" CMD="o/$MODE/tool/build/blinkenlights.com.dbg o/$MODE/examples/hello.com"
if OUTPUT="$($CMD)"; then if OUTPUT="$($CMD)"; then

View file

@ -4,6 +4,10 @@ if [ "$MODE" = dbg ]; then
exit # TODO exit # TODO
fi fi
if [ "$MODE" = opt ]; then
exit
fi
# smoke test booting on bare metal and printing data to serial uart # smoke test booting on bare metal and printing data to serial uart
CMD="o/$MODE/tool/build/blinkenlights.com.dbg -r o/$MODE/examples/hello.com" CMD="o/$MODE/tool/build/blinkenlights.com.dbg -r o/$MODE/examples/hello.com"
if OUTPUT="$($CMD)"; then if OUTPUT="$($CMD)"; then

View file

@ -14,6 +14,7 @@
** Including a description of file format and an overview of operation. ** Including a description of file format and an overview of operation.
*/ */
#include "third_party/sqlite3/btreeInt.inc" #include "third_party/sqlite3/btreeInt.inc"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
/* clang-format off */ /* clang-format off */

View file

@ -3,6 +3,7 @@
#include "libc/assert.h" #include "libc/assert.h"
#include "libc/str/str.h" #include "libc/str/str.h"
#include "third_party/sqlite3/sqlite3session.inc" #include "third_party/sqlite3/sqlite3session.inc"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#ifndef SQLITE_AMALGAMATION #ifndef SQLITE_AMALGAMATION
#include "third_party/sqlite3/sqliteInt.inc" #include "third_party/sqlite3/sqliteInt.inc"