Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33681

Lipo together the two cmdbridge for macOS

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: P4: Low P4: Low
    • None
    • Qt Creator 19.0 (master branch)
    • Remote Linux
    • None

      -rwxr-xr-x 1 tjmaciei users 2577696 Oct 28 09:20 libexec/qtcreator/cmdbridge-darwin-amd64
      -rwxr-xr-x 1 tjmaciei users 2519778 Oct 28 09:20 libexec/qtcreator/cmdbridge-darwin-arm64
      -rwxr-xr-x 1 tjmaciei users 2617528 Oct 28 09:20 libexec/qtcreator/cmdbridge-linux-amd64
      -rwxr-xr-x 1 tjmaciei users 2556088 Oct 28 09:20 libexec/qtcreator/cmdbridge-linux-arm64
      -rwxr-xr-x 1 tjmaciei users 2884096 Oct 28 09:20 libexec/qtcreator/cmdbridge-windows-amd64.exe
      -rwxr-xr-x 1 tjmaciei users 2738688 Oct 28 09:20 libexec/qtcreator/cmdbridge-windows-arm64.exe
      

      I suggest "lipo"ing the two "darwin" executables into a single file. On a Darwin host, you can use the actual lipo command. On other systems, you can use llvm-lipo if it is available.

      $  llvm-lipo -create -output /tmp/cmdbridge libexec/qtcreator/cmdbridge-darwin-*
      $  file /tmp/cmdbridge 
      /tmp/cmdbridge: Cafe Babe Mach-O universal binary with 2 architectures: [x86_64:\012- Mach-O 64-bit x86_64 executable, flags:<|DYLDLINK|PIE>] [\012- arm64:\012- Mach-O 64-bit arm64 executable, flags:<|DYLDLINK|PIE>]
      

      Feel free to reject if this is going to make the detection of which file to upload more difficult (as you already have to detect the remote's CPU anyway for the other OSes).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            madwinter Marcus Tillmanns
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes