Commit Graph

38 Commits

Author SHA1 Message Date
Yihau Chen 7d56c3484c
test: check the existence of target_path_parent before detelting (#33812) 2023-10-23 14:14:34 +00:00
Dmitri Makarov 8260ffc1ef
Bump platform-tools to v1.39 (#33804) 2023-10-21 16:22:16 -04:00
Sammy Harris 41ed9ab6d9
Fix: handle `-- --target-dir` arg in `cargo build-sbf` (#33555)
* fix: handle target dir override in build-sbf cargo args

* fix: refactor to canonicalize target arg for workspace absolute paths

* fix: nightly linting
2023-10-06 13:48:12 -07:00
Yihau Chen 99b24bd741
check source_path before delete it (#33255) 2023-09-14 18:44:12 +00:00
Alexander Meißner 150a798d32
Fix - Upcoming `arithmetic_side_effects` lints (#33000)
* dereplicode address alignment check

* Uses `checked_div` and `checked_rem` in built-in loaders.

* Uses `checked_div` and `checked_rem`.

* sdk: replace sub() with saturating_sub()

* eliminate `String` "arithmetic"

* allow arithmetic side-effects in tests and benches and on types we don't control

---------

Co-authored-by: Trent Nelson <trent@solana.com>
2023-08-29 20:58:53 +02:00
behzad nouri d54b6204be
removes instances of clippy::manual_let_else (#32417) 2023-07-09 21:41:36 +00:00
Yihau Chen c6574552e9
fix: check if platform-tool/rust/bin/rustc exists (#32350)
fix: check platform-tool/rust/bin/rustc exist before use
2023-06-30 18:28:16 +00:00
Dmitri Makarov f71cf07181
Add base rust version to the output of cargo-build-sbf --version (#32254) 2023-06-23 16:40:12 -07:00
Dmitri Makarov 8c860e9894
Bump platform-tools version to v1.37 (#31017) 2023-04-01 12:08:03 -04:00
Dmitri Makarov 81ef2a0d75
Update references to platform-tools (#30764) 2023-03-22 07:41:40 -07:00
Dmitri Makarov b915b47315
Bump sbf-tools version to v1.35 (#30628)
- this release includes fixes in relocation handling necessary for
  source-level debugging of on-chain programs
2023-03-07 07:23:59 -08:00
Dmitri Makarov 7361fe27f9
Disable cwd remapping if debug build is requested in build-sbf (#30601)
CWD remapping removes absolute path prefixes from the path strings in
generated binary files. The paths are needed for source level
debugging.
2023-03-06 21:36:44 -05:00
Dmitri Makarov 03652ada69
Bump sbf-tools version (#30397) 2023-02-21 15:23:48 +01:00
Dmitri Makarov 1896d4110f
Bump sbf-tools version (#30186) 2023-02-08 13:20:26 -08:00
Brooks 685c22ff41
Inlines variables into format strings (#29945) 2023-01-27 06:23:03 +00:00
Dmitri Makarov cc4e134079
Add an option to install a specific version of sbf-tools (#29544) 2023-01-10 06:14:24 -08:00
Dmitri Makarov 3a14e52eb7
Bump sbf-tools to v1.32 (#29325)
* Bump sbf-tools to v1.32

This version of sbf-tools is based on Rust 1.65.0 and LLVM 15.0.

* Temporary ignore build-sbf tests until issue with buildkite cache resolved
2022-12-24 11:34:12 -08:00
Dmitri Makarov 33946f5007
Add an option to reinstall sbf-tool binaries by cargo-build-sbf (#29410) 2022-12-24 08:54:55 -08:00
behzad nouri 9524c9dbff patches errors from clippy::uninlined_format_args
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
Brooks Prumo d1ba42180d
clippy for rust 1.65.0 (#28765) 2022-11-09 19:39:38 +00:00
Denis K d0f736a0d9
Fix 2 clippy warnings with temporary references (#28744) 2022-11-08 14:59:56 +00:00
Dmitri Makarov 0564d2a785 Add to cargo-test-sbf an option to test specific packages 2022-11-04 16:35:46 +00:00
Dmitri Makarov d6b3d338d0 Bump sbf-tools to v1.31 2022-10-27 07:18:35 -04:00
Dmitri Makarov 786c558a1f Bump sbf-tools to v1.30 2022-10-21 09:36:18 -04:00
Dmitri Makarov f4dd24491f Migrate SDK from BPF to SBF 2022-10-07 08:57:06 -04:00
behzad nouri 9a57c64f21
patches clippy errors from new rust nightly release (#27996) 2022-09-22 22:23:03 +00:00
Dmitri Makarov d42fcf2e30 Fix rust flags handling in cargo-build-sbf 2022-08-11 01:07:51 +00:00
Dmitri Makarov 776a47bd83 Bump sbf-tools version to v1.29 2022-08-07 22:11:57 +00:00
Richard Patel b4a9a0a89c cargo-build-sbf: support debuginfo 2022-07-27 15:42:10 -07:00
Dmitri Makarov 27cee7a7de Compile for bpf target for compatibility when cargo-build-bpf is used 2022-07-14 10:41:39 -07:00
Alessandro Decina ab6802bd2d cargo-build-sbf, cargo-test-sbf: add --arch option
--arch allows selecting the target SBF version. See
https://github.com/solana-labs/llvm-project/pull/26.
2022-07-13 14:49:38 -07:00
Dmitri Makarov 8797ad03c4 Bump sbf-tools version to v1.28 2022-07-13 21:47:48 +00:00
Dmitri Makarov 1db17a8874 Issue a warning about removing RUSTC from cargo env by build-sbf 2022-07-13 20:44:27 +00:00
Dmitri Makarov b7e7e4159c Prevent cargo from running a non-BPF compiler for BPF target 2022-07-13 05:48:48 +00:00
Dmitri Makarov 0bbfcc3ba0 Add a rustc option to strip environment information from path strings
Usernames and other environment specific information can be revealed
in on-chain program binary files that compiler generates, because it
includes paths to source files as strings in the binary files.  The
added option instructs the compiler to strip the path parts up to
and including crate root subdirectory from the path strings added to
the generated binary files.
2022-06-08 21:25:00 -07:00
Dmitri Makarov f3c77f7d9e Set up solana logger in cargo-build-sbf 2022-06-07 09:57:42 -07:00
Dmitri Makarov 4dfaf15a46 Add cargo bpf tools that invoke newer sbf tools and issue deprecation notice 2022-06-03 14:12:42 -07:00
Dmitri Makarov 9425478f86 Rename cargo-build-bpf and cargo-test-bpf to cargo-build-sbf and cargo-test-sbf 2022-06-03 14:12:42 -07:00