Skip to content

Commit

Permalink
apple special build
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 committed Jul 1, 2024
1 parent 44b08ab commit 4292840
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ CXX = g++

INCLUDES = -Iinclude
OUTPUT = stocksim
CXXFLAGS += -Wall -Wextra -pedantic -std=c++17 -Werror -g \
-Wcast-qual -Wundef -Wswitch -Wshadow -Wold-style-cast
CXXFLAGS += -Wall -Wextra -pedantic -std=c++17 -Werror -s \
-Wcast-qual -Wundef -Wswitch -Wshadow -Wold-style-cast -static -Os -flto
# -Wconversion -Wfloat-equal
# -fsanitize=address -fsanitize=undefined

Expand Down Expand Up @@ -165,6 +165,12 @@ endif
endif
endif

ifeq ($(MAKECMDGOALS),release)
ifeq ($(OUTPUT),stocksim)
OUTPUT = stocksim-release.exe
endif
endif

release: clean
# this should put after default target
"$(MAKE)" stocksim \
Expand Down
2 changes: 1 addition & 1 deletion src/format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const string bgWhite = "\x1b[47m";

const int sleepShort = 100;
const int sleepMedium = 500;
const int sleepLong = 1000;
const int sleepLong = 0;

void time::sleep(int dur) {
std::this_thread::sleep_for(std::chrono::milliseconds(dur));
Expand Down

0 comments on commit 4292840

Please sign in to comment.