Q: quick building for different targets #115

Open
opened 2022-01-21 05:53:12 -06:00 by Felixoid · 1 comment
Felixoid commented 2022-01-21 05:53:12 -06:00 (Migrated from github.com)

Hello, and many thanks for the project!

I have a question: is it possible to speed up building for different platforms?

Currently, we do the next thing in a project:

git clone --depth 1 https://github.com/tpoechtrager/cctools-port.git \
    && cd cctools-port/cctools \
    && ./configure --prefix=/cctools --with-libtapi=/cctools \
        --target=x86_64-apple-darwin \
    && make install \
    && make clean \
    && ./configure --prefix=/cctools --with-libtapi=/cctools \
        --target=aarch64-apple-darwin \
    && make install

As it's rebuilding the whole project twice, I think it's suboptimal.

Although, if I don't clean the project via make clean, I have the same files for different platforms:

sha256sum /cctools/bin/* | sort # without clean
0c2f5efdb09a23f5889d5f4775bc2cd6c53b5b933923c64f4fd7f5215482d0fe  /cctools/bin/aarch64-apple-darwin-check_dylib
0c2f5efdb09a23f5889d5f4775bc2cd6c53b5b933923c64f4fd7f5215482d0fe  /cctools/bin/x86_64-apple-darwin-check_dylib
1111b978e54130fa1d492eb4c8652c627a6fdb57b606097c75d4903974d1c3a7  /cctools/bin/aarch64-apple-darwin-ar
1111b978e54130fa1d492eb4c8652c627a6fdb57b606097c75d4903974d1c3a7  /cctools/bin/x86_64-apple-darwin-ar
# VS
sha256sum /cctools/bin/* | sort # with clean
072c1d951b8632c87375a9a381bae10c3d0ae99dfc6100f3e268d325b8751763  /cctools/bin/aarch64-apple-darwin-seg_addr_table
0a7e79ca48da14a0ee67ce9eb80194f641cf2692ec0c00181b13d7973ccef6b6  /cctools/bin/aarch64-apple-darwin-strip
0c2f5efdb09a23f5889d5f4775bc2cd6c53b5b933923c64f4fd7f5215482d0fe  /cctools/bin/x86_64-apple-darwin-check_dylib
1111b978e54130fa1d492eb4c8652c627a6fdb57b606097c75d4903974d1c3a7  /cctools/bin/x86_64-apple-darwin-ar

So, do you think it's possible to build the project for multiple targets simultaneously?

Hello, and many thanks for the project! I have a question: is it possible to speed up building for different platforms? Currently, we do the next thing in a project: ``` git clone --depth 1 https://github.com/tpoechtrager/cctools-port.git \ && cd cctools-port/cctools \ && ./configure --prefix=/cctools --with-libtapi=/cctools \ --target=x86_64-apple-darwin \ && make install \ && make clean \ && ./configure --prefix=/cctools --with-libtapi=/cctools \ --target=aarch64-apple-darwin \ && make install ``` As it's rebuilding the whole project twice, I think it's suboptimal. Although, if I don't clean the project via `make clean`, I have the same files for different platforms: ``` sha256sum /cctools/bin/* | sort # without clean 0c2f5efdb09a23f5889d5f4775bc2cd6c53b5b933923c64f4fd7f5215482d0fe /cctools/bin/aarch64-apple-darwin-check_dylib 0c2f5efdb09a23f5889d5f4775bc2cd6c53b5b933923c64f4fd7f5215482d0fe /cctools/bin/x86_64-apple-darwin-check_dylib 1111b978e54130fa1d492eb4c8652c627a6fdb57b606097c75d4903974d1c3a7 /cctools/bin/aarch64-apple-darwin-ar 1111b978e54130fa1d492eb4c8652c627a6fdb57b606097c75d4903974d1c3a7 /cctools/bin/x86_64-apple-darwin-ar # VS sha256sum /cctools/bin/* | sort # with clean 072c1d951b8632c87375a9a381bae10c3d0ae99dfc6100f3e268d325b8751763 /cctools/bin/aarch64-apple-darwin-seg_addr_table 0a7e79ca48da14a0ee67ce9eb80194f641cf2692ec0c00181b13d7973ccef6b6 /cctools/bin/aarch64-apple-darwin-strip 0c2f5efdb09a23f5889d5f4775bc2cd6c53b5b933923c64f4fd7f5215482d0fe /cctools/bin/x86_64-apple-darwin-check_dylib 1111b978e54130fa1d492eb4c8652c627a6fdb57b606097c75d4903974d1c3a7 /cctools/bin/x86_64-apple-darwin-ar ``` So, do you think it's possible to build the project for multiple targets simultaneously?
Felixoid commented 2022-05-13 11:21:59 -05:00 (Migrated from github.com)

Is it so rare case, that nobody uses it?

Is it so rare case, that nobody uses it?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miles/cctools-port#115
No description provided.