mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
To expose errors similar to https://github.com/pytorch/pytorch/pull/94401#issuecomment-1466654593 in OSS CI Building `aten_cpu` as a shared library with `-Wl,--no-undefined` simulates behavior of Android NDK toolchain. Test plan: It should fail, see https://github.com/pytorch/pytorch/actions/runs/4410571970/jobs/7728232916#step:14:1386 Pull Request resolved: https://github.com/pytorch/pytorch/pull/96697 Approved by: https://github.com/kit1980
27 lines
453 B
Plaintext
27 lines
453 B
Plaintext
[pt]
|
|
is_oss=1
|
|
|
|
[buildfile]
|
|
name = BUCK.oss
|
|
includes = //tools/build_defs/select.bzl
|
|
|
|
[repositories]
|
|
bazel_skylib = third_party/bazel-skylib/
|
|
ovr_config = .
|
|
|
|
[download]
|
|
in_build = true
|
|
|
|
[cxx]
|
|
cxxflags = -std=c++17
|
|
ldflags = -Wl,--no-undefined
|
|
should_remap_host_platform = true
|
|
cpp = /usr/bin/clang
|
|
cc = /usr/bin/clang
|
|
cxx = /usr/bin/clang++
|
|
cxxpp = /usr/bin/clang++
|
|
ld = /usr/bin/clang++
|
|
|
|
[project]
|
|
default_flavors_mode=all
|