compile php with multiple cpus

Discussion in 'Feedback/Feature Requests' started by anything, May 21, 2011.

  1. anything

    anything Well-Known Member

    Suggest adding an option to detect and use all cpu's when compiling php.
    On an 8 core system I changed your build script from "make" to "make -j 8" and reduced my php compile time down from "this is taking too long" to less than 30 seconds.

    Of course, this option should be optional. Some day I may want it to go slow so that the server is not slow for the web users.
  2. cmanns

    cmanns Well-Known Member

    I believe this can cause compilation anomalies.

    Just like my compilation with CFLAGS='-Os -march={arch} -msse2 -msse3 -mfpmath=sse -m{arch}' \

    wouldn't ever be optional :p

Share This Page