mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-02 16:12:22 +00:00
- Originally, in https://github.com/termux/termux-packages/pull/24716, I implemented only the `.vsix` package because that is what is required for using codelldb with `code-oss`, which is the only way that I personally use it. However, I did not realize at the time that it was possible to use codelldb with **non-VSCode-based editors**, and that people who use it outside of any VSCode-based editor **need to directly execute the binary**, making it important for that binary to be available in `$TERMUX_PREFIX/bin`. - **This PR implements the following three commands that do _not_ currently work/exist in Termux**: - `pkg install codelldb` - `codelldb` - `python -c "import codelldb"` - This heavily patches and organizes the package in such a way that the needs of @BenVella, the user of codelldb in Termux, are better met - for their case, using codelldb inside NeoVIM: https://github.com/vadimcn/codelldb/discussions/1278#discussioncomment-14059990 - All of the the preexisting functionality of both the `vsix-package-codelldb` package and the `code-oss-extension-codelldb` package should remain working and available after this reorganization. - Also, properly marks the subpackage as **not** platform-independent by inheritance of the property from its dependencies. For more information, see: https://github.com/termux/termux-packages/pull/25306
12 lines
435 B
Diff
12 lines
435 B
Diff
--- a/adapter/codelldb/bin/main.rs
|
|
+++ b/adapter/codelldb/bin/main.rs
|
|
@@ -31,7 +31,7 @@ fn main() -> Result<(), Error> {
|
|
#[cfg(windows)]
|
|
pub const DYLIB_SUBDIR: &str = "bin";
|
|
|
|
- #[cfg(target_os = "linux")]
|
|
+ #[cfg(any(target_os = "linux", target_os = "android"))]
|
|
pub const DYLIB_EXTENSION: &str = "so";
|
|
#[cfg(target_os = "macos")]
|
|
pub const DYLIB_EXTENSION: &str = "dylib";
|