mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-19 12:13:36 -04:00
Updated C and C++ makefiles to exclude warnings and sanitizers by default, instead recommending extra flags for manually doing a diagnostic/debug build.
This commit is contained in:
+5
-6
@@ -28,12 +28,11 @@
|
||||
# - CXX: The C++ compiler, such as g++ or clang++.
|
||||
# - CXXFLAGS: Any extra user-specified compiler flags (can be blank).
|
||||
|
||||
# Mandatory compiler flags
|
||||
CXXFLAGS += -std=c++11
|
||||
# Diagnostics. Adding '-fsanitize=address' is helpful for most versions of Clang and newer versions of GCC.
|
||||
CXXFLAGS += -Wall -fsanitize=undefined
|
||||
# Optimization level
|
||||
CXXFLAGS += -O1
|
||||
# Recommended compiler flags:
|
||||
CXXFLAGS += -std=c++11 -O
|
||||
|
||||
# Extra flags for diagnostics:
|
||||
# CXXFLAGS += -g -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=undefined,address
|
||||
|
||||
|
||||
# ---- Controlling make ----
|
||||
|
||||
Reference in New Issue
Block a user