Skip to content

Commit 6a539ae

Browse files
committed
Disable pen blocks when using LLVM
1 parent ea4340a commit 6a539ae

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,15 @@ qt_add_qml_module(scratchcpp-render
7474
cputexturemanager.h
7575
effecttransform.cpp
7676
effecttransform.h
77-
blocks/penblocks.cpp
78-
blocks/penblocks.h
7977
)
8078

79+
if (NOT LIBSCRATCHCPP_USE_LLVM)
80+
target_sources(scratchcpp-render
81+
PRIVATE
82+
blocks/penblocks.cpp
83+
blocks/penblocks.h)
84+
endif()
85+
8186
list(APPEND QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
8287
list(REMOVE_DUPLICATES QML_IMPORT_PATH)
8388
set(QML_IMPORT_PATH ${QML_IMPORT_PATH} CACHE STRING "" FORCE)

src/projectloader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ ProjectLoader::ProjectLoader(QObject *parent) :
3737
initTimer();
3838
m_renderTimer.start();
3939

40+
#ifndef USE_LLVM
4041
// Register pen blocks
4142
ScratchConfiguration::registerExtension(std::make_shared<PenBlocks>());
43+
#endif
4244
}
4345

4446
ProjectLoader::~ProjectLoader()

0 commit comments

Comments
 (0)