Skip to content
Snippets Groups Projects

pmb.build: make sure cross compiler config is appropriate for each given package

Merged Clayton Craft requested to merge craftyguy/fix-cross-native into master
  1. Oct 11, 2024
    • Clayton Craft's avatar
      pmb.build: make sure cross compiler config is appropriate for each given package (MR 2433) · e56eadd6
      Clayton Craft authored
      Here's the problem: Imagine a queue with 2 packages in it, the 1st
      package uses crossdirect and the second uses cross-native. When building
      the 1st package, pmb will configure the native chroot for crossdirect
      as expected. When it gets to the 2nd package, the chroot env/config
      might not be appropriate for actually doing a native cross compile.
      
      This re-inits the cross compiler stuff if the cross compile method
      changes while processing the queue.
      
      Another approach that might solve this problem is to not re-use chroots
      when building packages... I didn't think this was a good way to go
      because it would greatly increase runtime (having to recreate chroots
      multiple times)
      Unverified
      e56eadd6
Loading