mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Bug 1336153 - Remove MOZ_RUST. r=ted
We now have code that unconditionally requires the rust compiler and are committed to adding more. Remove this last vestige of conditional support. MozReview-Commit-ID: EK6FBnAbR --HG-- extra : rebase_source : 6efda10a74f9ca0482304c2b1ffe6941e42138f8
This commit is contained in:
parent
bacca6ee5c
commit
f56cb16c14
@ -97,8 +97,6 @@ def rust_compiler(rustc_info, cargo_info):
|
||||
|
||||
return True
|
||||
|
||||
set_config('MOZ_RUST', rust_compiler)
|
||||
|
||||
@template
|
||||
def rust_triple_alias(host_or_target):
|
||||
"""Template defining the alias used for rustc's --target flag.
|
||||
@ -233,6 +231,5 @@ def rust_target_env_name(triple):
|
||||
set_config('RUST_TARGET_ENV_NAME', rust_target_env_name)
|
||||
|
||||
# Until we remove all the other Rust checks in old-configure.
|
||||
add_old_configure_assignment('MOZ_RUST', rust_compiler)
|
||||
add_old_configure_assignment('RUSTC', rustc)
|
||||
add_old_configure_assignment('RUST_TARGET', rust_target_triple)
|
||||
|
@ -900,7 +900,6 @@ endif
|
||||
|
||||
$(foreach file,$(DUMP_SYMS_TARGETS),$(eval $(call syms_template,$(file),$(file)_syms.track)))
|
||||
|
||||
ifdef MOZ_RUST
|
||||
cargo_host_flag := --target=$(RUST_HOST_TARGET)
|
||||
cargo_target_flag := --target=$(RUST_TARGET)
|
||||
|
||||
@ -1051,7 +1050,6 @@ force-cargo-host-program-build:
|
||||
|
||||
$(HOST_RUST_PROGRAMS): force-cargo-host-program-build
|
||||
endif # HOST_RUST_PROGRAMS
|
||||
endif # MOZ_RUST
|
||||
|
||||
$(SOBJS):
|
||||
$(REPORT_BUILD)
|
||||
|
@ -23,6 +23,7 @@ UNIFIED_SOURCES += [
|
||||
'TestMP3Demuxer.cpp',
|
||||
'TestMP4Demuxer.cpp',
|
||||
# 'TestMP4Reader.cpp', disabled so we can turn check tests back on (bug 1175752)
|
||||
'TestRust.cpp',
|
||||
'TestTrackEncoder.cpp',
|
||||
'TestVideoSegment.cpp',
|
||||
'TestVideoUtils.cpp',
|
||||
@ -36,10 +37,6 @@ if CONFIG['MOZ_WEBM_ENCODER']:
|
||||
'TestWebMWriter.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_RUST']:
|
||||
UNIFIED_SOURCES += ['TestRust.cpp',]
|
||||
|
||||
|
||||
TEST_HARNESS_FILES.gtest += [
|
||||
'../test/gizmo-frag.mp4',
|
||||
'../test/gizmo.mp4',
|
||||
|
@ -38,13 +38,12 @@ TEST_HARNESS_FILES.gtest += [
|
||||
'test_case_1351094.mp4',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_RUST']:
|
||||
UNIFIED_SOURCES += ['TestMP4Rust.cpp',]
|
||||
TEST_HARNESS_FILES.gtest += [
|
||||
'../../../dom/media/test/street.mp4',
|
||||
]
|
||||
LOCAL_INCLUDES += [
|
||||
'../binding/include',
|
||||
]
|
||||
UNIFIED_SOURCES += ['TestMP4Rust.cpp',]
|
||||
TEST_HARNESS_FILES.gtest += [
|
||||
'../../../dom/media/test/street.mp4',
|
||||
]
|
||||
LOCAL_INCLUDES += [
|
||||
'../binding/include',
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul-gtest'
|
||||
|
@ -83,10 +83,9 @@ SOURCES += [
|
||||
'system/core/libutils/VectorImpl.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_RUST']:
|
||||
EXPORTS += [
|
||||
'binding/include/mp4parse.h',
|
||||
]
|
||||
EXPORTS += [
|
||||
'binding/include/mp4parse.h',
|
||||
]
|
||||
|
||||
UNIFIED_SOURCES += [
|
||||
'binding/Adts.cpp',
|
||||
|
@ -255,7 +255,7 @@ UNIFIED_SOURCES += [
|
||||
'TLSServerSocket.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_RUST'] and CONFIG['MOZ_RUST_URLPARSE']:
|
||||
if CONFIG['MOZ_RUST_URLPARSE']:
|
||||
EXPORTS.mozilla.net += [ 'RustURL.h' ]
|
||||
UNIFIED_SOURCES += [ 'RustURL.cpp' ]
|
||||
|
||||
|
@ -2328,14 +2328,12 @@ if test -n "$MOZ_MULET"; then
|
||||
fi
|
||||
|
||||
# Propagate feature switches for code written in rust from confvars.sh
|
||||
if test -n "$MOZ_RUST"; then
|
||||
if test -n "$MOZ_RUST_MP4PARSE"; then
|
||||
AC_DEFINE(MOZ_RUST_MP4PARSE)
|
||||
fi
|
||||
if test -n "$MOZ_RUST_URLPARSE"; then
|
||||
AC_DEFINE(MOZ_RUST_URLPARSE)
|
||||
AC_SUBST(MOZ_RUST_URLPARSE)
|
||||
fi
|
||||
if test -n "$MOZ_RUST_MP4PARSE"; then
|
||||
AC_DEFINE(MOZ_RUST_MP4PARSE)
|
||||
fi
|
||||
if test -n "$MOZ_RUST_URLPARSE"; then
|
||||
AC_DEFINE(MOZ_RUST_URLPARSE)
|
||||
AC_SUBST(MOZ_RUST_URLPARSE)
|
||||
fi
|
||||
|
||||
AC_SUBST(MOZ_PHOENIX)
|
||||
|
@ -7,6 +7,7 @@
|
||||
FINAL_TARGET = 'dist/bin/gtest'
|
||||
|
||||
USE_LIBS += [
|
||||
'gkrust-gtest',
|
||||
'static:xul',
|
||||
# xul-gtest is an intermediate static library. It is used as FINAL_TARGET
|
||||
# for gtest code.
|
||||
@ -20,11 +21,6 @@ USE_LIBS += [
|
||||
# before StaticXULComponentStart.
|
||||
Libxul('xul-gtest-real')
|
||||
|
||||
if CONFIG['MOZ_RUST']:
|
||||
USE_LIBS += [
|
||||
'gkrust-gtest',
|
||||
]
|
||||
|
||||
DIRS += [
|
||||
'static',
|
||||
]
|
||||
|
@ -63,7 +63,7 @@ def Libxul(name):
|
||||
|
||||
# This option should go away in bug 1290972, but we need to wait until
|
||||
# Rust 1.12 has been released.
|
||||
if CONFIG['MOZ_RUST'] and CONFIG['OS_ARCH'] == 'Darwin':
|
||||
if CONFIG['OS_ARCH'] == 'Darwin':
|
||||
LDFLAGS += ['-Wl,-no_compact_unwind']
|
||||
|
||||
Libxul('xul')
|
||||
@ -351,5 +351,4 @@ USE_LIBS += ['StaticXULComponentsEnd']
|
||||
# The above library needs to be last for C++ purposes. This library,
|
||||
# however, is entirely composed of Rust code, and needs to come after
|
||||
# all the C++ code so any possible C++ -> Rust calls can be resolved.
|
||||
if CONFIG['MOZ_RUST']:
|
||||
USE_LIBS += ['gkrust']
|
||||
USE_LIBS += ['gkrust']
|
||||
|
@ -133,23 +133,16 @@ if CONFIG['MOZ_PREF_EXTENSIONS']:
|
||||
|
||||
DIRS += [
|
||||
'/devtools',
|
||||
'/toolkit/library',
|
||||
'/toolkit/library/gtest/rust',
|
||||
'/toolkit/library/rust',
|
||||
'/toolkit/library/StaticXULComponentsEnd',
|
||||
'/services',
|
||||
'/startupcache',
|
||||
'/js/ductwork/debugger',
|
||||
'/other-licenses/snappy',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_RUST']:
|
||||
DIRS += [
|
||||
'/toolkit/library/gtest/rust',
|
||||
'/toolkit/library/rust',
|
||||
]
|
||||
|
||||
DIRS += [
|
||||
'/toolkit/library/StaticXULComponentsEnd',
|
||||
'/toolkit/library',
|
||||
]
|
||||
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
DIRS += ['/toolkit/system/gnome']
|
||||
|
||||
|
@ -4,9 +4,8 @@
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
if CONFIG['MOZ_RUST']:
|
||||
UNIFIED_SOURCES += [
|
||||
'Test.cpp'
|
||||
]
|
||||
UNIFIED_SOURCES += [
|
||||
'Test.cpp'
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul-gtest'
|
||||
|
Loading…
x
Reference in New Issue
Block a user