-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PY-44191 PY-48163 Provide
Attach to process
binary for Linux AArch6…
…4 and universal binary for macOS Now we use the following binaries for `Attach to process`: Windows: - `attach_amd64.dll` - `attach_x86.dll` (no changes in this commit, no ARM64 support) Linux: - `attach_linux_amd64.so` - `attach_linux_x86.so` - `attach_linux_aarch64.so` (the last one was added) macOS: - `attach.dylib` (universal binary containing both arm64 and x86_64 code) Note, `attach_x86.dylib` was removed and was not merged into the universal binary because Apple dropped support for 32-bit apps in macOS Catalina (10.15). However, there is still obsolete code for macOS i386 in the `pydev` module that should be dropped in the future GitOrigin-RevId: 51cdf976eaf5580218cf6026849e4da51c9370e6
- Loading branch information
1 parent
054f99c
commit 2e7109f
Showing
11 changed files
with
33 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+21.7 KB
python/helpers/pydev/pydevd_attach_to_process/attach_linux_aarch64.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
python/helpers/pydev/pydevd_attach_to_process/linux_and_mac/compile_linux_aarch64.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
g++ -march=armv8-a -shared -o attach_linux_aarch64.so -fPIC -nostartfiles attach.cpp | ||
mv attach_linux_aarch64.so ../attach_linux_aarch64.so | ||
echo Compiled aarch64 |
18 changes: 9 additions & 9 deletions
18
python/helpers/pydev/pydevd_attach_to_process/linux_and_mac/compile_mac.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
g++ -fPIC -D_REENTRANT -std=c++11 -arch x86_64 -c -o attach_x86_64.o attach.cpp | ||
g++ -dynamiclib -nostartfiles -arch x86_64 -o attach_x86_64.dylib attach_x86_64.o -lc | ||
rm attach_x86_64.o | ||
mv attach_x86_64.dylib ../attach_x86_64.dylib | ||
|
||
clang++ -fPIC -D_REENTRANT -std=c++11 -arch arm64 -c -o attach_arm64.o attach.cpp | ||
clang++ -dynamiclib -nostartfiles -arch arm64 -o attach_arm64.dylib attach_arm64.o -lc | ||
rm attach_arm64.o | ||
|
||
g++ -fPIC -D_REENTRANT -std=c++11 -arch i386 -c -o attach_x86.o attach.cpp | ||
g++ -dynamiclib -nostartfiles -arch i386 -o attach_x86.dylib attach_x86.o -lc | ||
rm attach_x86.o | ||
mv attach_x86.dylib ../attach_x86.dylib | ||
clang++ -fPIC -D_REENTRANT -std=c++11 -arch x86_64 -c -o attach_x86_64.o attach.cpp | ||
clang++ -dynamiclib -nostartfiles -arch x86_64 -o attach_x86_64.dylib attach_x86_64.o -lc | ||
rm attach_x86_64.o | ||
|
||
lipo -create attach_arm64.dylib attach_x86_64.dylib -output attach.dylib | ||
rm attach_arm64.dylib attach_x86_64.dylib | ||
mv attach.dylib ../attach.dylib |
4 changes: 0 additions & 4 deletions
4
python/helpers/pydev/pydevd_attach_to_process/linux_and_mac/compile_mac_arm64.sh
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters