diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,6 +6,7 @@ OPTIMIZATION="-O2" # Enable optimization. DEBUG=0 # Compile with debug UI. IMGUI=1 # Compile ImGui libs. Our custom ImGui functions still compile on zero. PERF=0 # Print cycle stats. +STABLE=1 # Compile experimental stable-diffusion-webui support; requires curl. # Add flag overrides to this file (it's untracked on the tree) if test -f build_ops; then @@ -63,6 +64,10 @@ fi if [[ "$PERF" == 1 ]]; then WARNING_FLAGS="$WARNING_FLAGS -DPERF=1" fi +if [[ "$STABLE" == 1 ]]; then +WARNING_FLAGS="$WARNING_FLAGS -DSTABLE=1" +OPTIONAL_FLAGS="$OPTIONAL_FLAGS -lcurl" +fi if [[ "$OSTYPE" =~ ^darwin ]]; then IMGUI_FLAGS=" @@ -104,6 +109,6 @@ clang main.cpp $WARNING_FLAGS $OPTIMIZATION $ADDITIONAL_FLAGS -o bin/real2d bin $GLAD_FLAGS \ -std=c++11 -lstdc++ -Iimgui -Iimgui/backends \ $SDL_ARGS \ + $OPTIONAL_FLAGS \ -I . \ -lm -I /usr/local/include $(pkg-config --cflags --libs $FFMPEG_LIBS) -# -lcurl |