Skip to content

Commit

Permalink
Merge pull request #1283 from microsoft/bugfix-optflag
Browse files Browse the repository at this point in the history
[build] Bug Fix: Use -O0 instead of -O3 when in debug mode
  • Loading branch information
ppenna committed May 16, 2024
2 parents c420595 + 57cbf22 commit 71a0b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export CARGO_FLAGS += --profile $(BUILD)
# C
export CFLAGS := -I $(INCDIR)
ifeq ($(DEBUG),yes)
export CFLAGS += -O3
export CFLAGS += -O0
endif

#=======================================================================================================================
Expand Down

0 comments on commit 71a0b41

Please sign in to comment.