Skip to content

Commit

Permalink
Merge pull request #13334 from fwcd/fix-macos-qml-build
Browse files Browse the repository at this point in the history
Fix QML build regressions on macOS
  • Loading branch information
Swiftb0y authored Jun 7, 2024
2 parents 8be2e89 + 0ccf1c1 commit 91e16fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
-DMACOS_BUNDLE=ON
-DMODPLUG=ON
-DQT6=ON
-DQML=OFF
-DQML=ON
-DWAVPACK=ON
-DVCPKG_TARGET_TRIPLET=arm64-osx-min1100-release
-DVCPKG_DEFAULT_HOST_TRIPLET=x64-osx-min1100-release
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/rendering/controllerrenderingengine.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <GL/gl.h>

#include <QObject>
#include <QOpenGLContext>
#include <QOpenGLFramebufferObject>
#include <chrono>
#include <gsl/pointers>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
#include <QQuickWindow>
#include <QtEndian>
#include <algorithm>

// Prevent conflict with methods called 'emit' in <execution> source
#pragma push_macro("emit")
#undef emit
#include <execution>
#pragma pop_macro("emit")
#endif

#include "control/controlobject.h"
Expand Down Expand Up @@ -323,7 +317,7 @@ void ControllerScriptEngineLegacy::setScriptFiles(
m_scriptFiles = scripts;

#ifdef MIXXX_USE_QML
setQMLMode(std::any_of(std::execution::par_unseq,
setQMLMode(std::any_of(
m_scriptFiles.cbegin(),
m_scriptFiles.cend(),
[](const auto& scriptFileInfo) {
Expand Down Expand Up @@ -660,7 +654,9 @@ void ControllerScriptEngineLegacy::handleScreenFrame(
emit previewRenderedScreen(screenInfo, screenDebug);
}

QByteArray input(std::bit_cast<const char*>(frame.constBits()), frame.sizeInBytes());
// TODO: Refactor this to a `std::bit_cast` once we drop support for older
// compilers that don't support it (e.g. older than Xcode 14.3/macOS 13)
QByteArray input(reinterpret_cast<const char*>(frame.constBits()), frame.sizeInBytes());
const TransformScreenFrameFunction& transformMethod =
m_transformScreenFrameFunctions[screenInfo.identifier];

Expand Down

0 comments on commit 91e16fa

Please sign in to comment.