mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Revert "tools: detect appropriate debug optimization level"
This reverts commit b435014517.
Due to the implementation of cc-option, the check is always true,
which means build for gcc that doesn't have -Og support is broken.
This patch can be reapplied once we have fixed cc-option.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
ab741b1aea
commit
1dd9fa04fa
1 file changed
+2
-7
+2
-7
@@ -164,13 +164,8 @@ LDLIBS_libxenvchan = $(SHDEPS_libxenvchan) $(XEN_LIBVCHAN)/libxenvchan$(libexten
|
||||
SHLIB_libxenvchan = $(SHDEPS_libxenvchan) -Wl,-rpath-link=$(XEN_LIBVCHAN)
|
||||
|
||||
ifeq ($(debug),y)
|
||||
CFLAGS += -fno-omit-frame-pointer
|
||||
# Use optimizations compatible with debugging otherwise disable optimizations
|
||||
ifneq ($(call cc-option,$(CC),-Og,n),n)
|
||||
CFLAGS += -Og
|
||||
else
|
||||
CFLAGS += -O0
|
||||
endif
|
||||
# Disable optimizations
|
||||
CFLAGS += -O0 -fno-omit-frame-pointer
|
||||
# But allow an override to -O0 in case Python enforces -D_FORTIFY_SOURCE=<n>.
|
||||
PY_CFLAGS += $(PY_NOOPT_CFLAGS)
|
||||
else
|
||||
|
||||