e43d8ee8ff
With this enabled, we'll check the entire build graph for missing dependencies -- even if you don't need to build the module. So it'll present more errors, but surface them earlier. These can be turned off manually with an environment variable if the branch is expected to have missing dependencies: ALLOW_MISSING_DEPENDENCIES=true SOONG_ALLOW_MISSING_DEPENDENCIES=true (previous method) That will be set automatically when using 'mm', which doesn't load the entire build graph. It will also be set when using 'tapas' to build unbundled apps, since those are usually on reduced branches. This provides better error messages when a library is missing: system/core/init/Android.mk: error: init_tests (NATIVE_TESTS android-arm64) missing libinit (SHARED_LIBRARIES android-arm64) Available variants: libinit (STATIC_LIBRARIES android-arm64) libinit (STATIC_LIBRARIES android-arm) You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build. system/core/init/Android.mk: error: init_tests (NATIVE_TESTS android-arm) missing libinit (SHARED_LIBRARIES android-arm) Available variants: libinit (STATIC_LIBRARIES android-arm64) libinit (STATIC_LIBRARIES android-arm) You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build. build/core/main.mk:852: error: exiting from previous errors. instead of: ninja: error: 'out/target/product/generic_arm64/obj/SHARED_LIBRARIES/libinit_intermediates/export_includes', needed by 'out/target/product/generic_arm64/obj/NATIVE_TESTS/init_tests_intermediates/import_includes', missing and no known rule to make it Test: Manually introduce errors, check for expected output Test: multiproduct_kati on AOSP and internal master, no new breakages Change-Id: I5847f813045929813214137403c499b44ef67907 Merged-In: I5847f813045929813214137403c499b44ef67907 |
||
---|---|---|
.. | ||
clang | ||
combo | ||
no_java_path | ||
tasks | ||
aapt2.mk | ||
android_manifest.mk | ||
apicheck_msg_current.txt | ||
apicheck_msg_last.txt | ||
aux_config.mk | ||
aux_executable.mk | ||
aux_static_library.mk | ||
aux_toolchain.mk | ||
base_rules.mk | ||
binary.mk | ||
build-system.html | ||
build_id.mk | ||
build_rro_package.mk | ||
ccache.mk | ||
checktree | ||
cleanbuild.mk | ||
cleanspec.mk | ||
clear_vars.mk | ||
config.mk | ||
config_sanitizers.mk | ||
configure_local_jack.mk | ||
configure_module_stem.mk | ||
copy_headers.mk | ||
cxx_stl_setup.mk | ||
definitions.mk | ||
device.mk | ||
dex_preopt.mk | ||
dex_preopt_libart.mk | ||
dex_preopt_libart_boot.mk | ||
dex_preopt_odex_install.mk | ||
distdir.mk | ||
dpi_specific_apk.mk | ||
droiddoc.mk | ||
dumpvar.mk | ||
dynamic_binary.mk | ||
envsetup.mk | ||
executable.mk | ||
executable_internal.mk | ||
executable_prefer_symlink.mk | ||
filter_symbols.sh | ||
find-jdk-tools-jar.sh | ||
fuzz_test.mk | ||
generate_enforce_rro.mk | ||
goma.mk | ||
header_library.mk | ||
header_library_internal.mk | ||
help.mk | ||
host_dalvik_java_library.mk | ||
host_dalvik_static_java_library.mk | ||
host_executable.mk | ||
host_executable_internal.mk | ||
host_fuzz_test.mk | ||
host_java_library.mk | ||
host_java_library_common.mk | ||
host_native_test.mk | ||
host_prebuilt.mk | ||
host_shared_library.mk | ||
host_shared_library_internal.mk | ||
host_shared_test_lib.mk | ||
host_static_library.mk | ||
host_static_library_internal.mk | ||
host_static_test_lib.mk | ||
host_test_internal.mk | ||
install_jni_libs.mk | ||
install_jni_libs_internal.mk | ||
jack-default.args | ||
java.mk | ||
java_common.mk | ||
java_library.mk | ||
link_type.mk | ||
LINUX_KERNEL_COPYING | ||
local_vndk.mk | ||
main.mk | ||
Makefile | ||
module_arch_supported.mk | ||
multi_prebuilt.mk | ||
multilib.mk | ||
native_benchmark.mk | ||
native_test.mk | ||
ninja_config.mk | ||
node_fns.mk | ||
notice_files.mk | ||
package.mk | ||
package_internal.mk | ||
pathmap.mk | ||
pdk_config.mk | ||
pdk_fusion_modules.mk | ||
phony_package.mk | ||
prebuilt.mk | ||
prebuilt_internal.mk | ||
process_wrapper.sh | ||
process_wrapper_gdb.cmds | ||
process_wrapper_gdb.sh | ||
product-graph.mk | ||
product.mk | ||
product_config.mk | ||
proguard.emma.flags | ||
proguard.flags | ||
proguard.jacoco.flags | ||
proguard_basic_keeps.flags | ||
proguard_tests.flags | ||
root.mk | ||
sdk_font.mk | ||
setup_one_odex.mk | ||
shared_library.mk | ||
shared_library_internal.mk | ||
shared_test_lib.mk | ||
soong_config.mk | ||
static_java_library.mk | ||
static_library.mk | ||
static_library_internal.mk | ||
static_test_lib.mk | ||
target_test_internal.mk | ||
version_defaults.mk | ||
WINPTHREADS_COPYING |