Sujet : Re: Python recompile
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 10. Apr 2025, 07:54:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vt7pu8$2f9bj$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Pan/0.162 (Pokrosvk)
On Tue, 11 Mar 2025 22:02:37 +0000, bart wrote:
You have machines now that are 1000 times faster than what I was using,
and yet compilation time is still be an issue unless you use all these
tricks?
The programs are 1000 times bigger, too.
How long do you think it takes Microsoft to rebuild Windows? Think
your tools could cope with that?
Beggars can’t be choosers. As long as you don’t have the skills or
patience to actually contribute to such development, you have to accept
what you get.
Have you actually tried it? I mean what I suggested in taking a
project, and extracting the most basic steps. Like the invocation of gcc
above. You might start questioning all this pointless complexity
yourself.
I do open-source builds all the time. I have even contributed patches
to some build scripts. Here is a small part of a wrapper I did for the
Blender build script, which handles my particular choice of build
options:
cmake ${CMAKE_DEBUG_FLAGS} ${EXTRA_FLAGS} \
-D WITH_BUILDINFO=ON -D WITH_DOC_MANPAGE=ON \
-D WITH_PLAYER=OFF -D WITH_GAMEENGINE=OFF \
-D WITH_PYTHON_INSTALL=OFF -D PYTHON_VERSION=$PYVERSION \
-D PYTHON_INCLUDE_DIR=/usr/include/python${PYVERSION} \
-D PYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython${PYVERSION}.so \
-D WITH_FFTW3=ON -D WITH_MOD_OCEANSIM=ON -D WITH_IMAGE_OPENEXR=ON -D WITH_OPENCOLORIO=ON \
-D FREETYPE_INCLUDE_DIRS=/usr/include/freetype2 \
-D WITH_LLVM=ON -D LLVM_ROOT_DIR=${LLVM_ROOT_DIR} -D LLVM_VERSION=${LLVM_VERSION} \
${OSL_OPTS} \
-D WITH_OPENSUBDIV=${WITH_OPENSUBDIV} \
-D WITH_MEM_JEMALLOC=${WITH_MEM_JEMALLOC} \
-D EMBREE_INCLUDE_DIR=/usr/include -D EMBREE_ROOT_DIR=/usr/lib/x86_64-linux-gnu -D EMBREE_LIBRARY=/usr/lib/x86_64-linux-gnu/libembree3.so -D EMBREE_EMBREE3_LIBRARY=/usr/lib/x86_64-linux-gnu/libembree3.so \
-D WITH_JACK=${WITH_JACK} -D WITH_SDL=OFF \
-D WITH_OPENCOLLADA=$WITH_COLLADA \
${FFMPEG_OPTS} \
-D WITH_CODEC_SNDFILE=ON \
-D CMAKE_VERBOSE_MAKEFILE=$CMAKE_VERBOSE_MAKEFILE \
-D CMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
../"$CHECKOUTDIR"
Go on, tell me what “most basic steps” you can “extract” from that. I
can go over it in detail, if you want.