mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-24 07:40:19 +00:00
9e45701891
Previously e.g. `buck build :cxx` was surprisingly a no-op, requiring one to build `:cxx#check` or `:cxx#rlib-pic` in order to perform any compiler invocation at all. defaults.rust_library.type is a recent feature (landed in facebook/buck@c425eb93e1), hence the bump of the Buck commit pulled in for CI.
24 lines
683 B
Plaintext
24 lines
683 B
Plaintext
[project]
|
|
# We use some symlinks in the source tree, but they get eliminated by `cargo
|
|
# publish` and `cargo vendor` so this allow_symlinks setting should not be
|
|
# required downstream.
|
|
allow_symlinks = allow
|
|
|
|
# Hide BUCK files under target/package/ from `buck build ...`. Otherwise:
|
|
# $ buck build ...
|
|
# //target/package/cxx-0.3.0/tests:ffi references non-existing file or directory 'target/package/cxx-0.3.0/tests/ffi/lib.rs'
|
|
ignore = target
|
|
|
|
[cxx]
|
|
cxxflags = -std=c++11
|
|
|
|
[rust]
|
|
default_edition = 2018
|
|
rustc_flags = \
|
|
-Clink-arg=-fuse-ld=lld \
|
|
-Crelocation-model=dynamic-no-pic \
|
|
--cap-lints=allow
|
|
|
|
[defaults.rust_library]
|
|
type = check
|