Bug 1381043 - Enable fuller debug info for rust code on OSX cross builds. r=froydnj

--HG--
extra : rebase_source : 145edf24d2ea1366fe8ee0430bb95a99b841dd83
This commit is contained in:
Mike Hommey 2017-10-12 18:02:49 +09:00
parent e0a1996b7e
commit 59ba5a09e4

View File

@ -919,12 +919,7 @@ ifdef MOZ_USING_SCCACHE
sccache_wrap := RUSTC_WRAPPER='$(CCACHE)'
endif
# XXX hack to work around dsymutil failing on cross-OSX builds (bug 1380381)
ifeq ($(HOST_OS_ARCH)-$(OS_ARCH),Linux-Darwin)
default_rustflags += -C debuginfo=1
else
default_rustflags += -C debuginfo=2
endif
# We use the + prefix to pass down the jobserver fds to cargo, but we
# don't use the prefix when make -n is used, so that cargo doesn't run