8251541: "no symbols" printed when building hotspot
Reviewed-by: erikj
This commit is contained in:
parent
54490d30c8
commit
74cb1b4e75
@ -250,14 +250,14 @@ ifneq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
|
|||||||
|
|
||||||
define SetupOperatorNewDeleteCheck
|
define SetupOperatorNewDeleteCheck
|
||||||
$1.op_check: $1
|
$1.op_check: $1
|
||||||
if [ -n "`$(NM) $$< | $(GREP) $(addprefix -e , $(MANGLED_SYMS)) \
|
$$(call ExecuteWithLog, $1.op_check, \
|
||||||
| $(GREP) $(UNDEF_PATTERN)`" ]; then \
|
$$(NM) $$< 2>&1 | $$(GREP) $$(addprefix -e , $$(MANGLED_SYMS)) | $$(GREP) $$(UNDEF_PATTERN) > $1.op_check || true)
|
||||||
$(ECHO) "$$<: Error: Use of global operators new and delete is not allowed in Hotspot:"; \
|
if [ -s $1.op_check ]; then \
|
||||||
$(NM) $$< | $(CXXFILT) | $(EGREP) '$(DEMANGLED_REGEXP)' | $(GREP) $(UNDEF_PATTERN); \
|
$$(ECHO) "$$(notdir $$<): Error: Use of global operators new and delete is not allowed in Hotspot:"; \
|
||||||
$(ECHO) "See: $(TOPDIR)/make/hotspot/lib/CompileJvm.gmk"; \
|
$$(NM) $$< | $$(CXXFILT) | $$(EGREP) '$$(DEMANGLED_REGEXP)' | $$(GREP) $$(UNDEF_PATTERN); \
|
||||||
|
$$(ECHO) "See: $$(TOPDIR)/make/hotspot/lib/CompileJvm.gmk"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
$(TOUCH) $$@
|
|
||||||
|
|
||||||
TARGETS += $1.op_check
|
TARGETS += $1.op_check
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user