Skip to content

Commit

Permalink
Update config-macports.pri
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 19, 2021
1 parent 2ab4791 commit 268d5e7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions config-macports.pri
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,31 @@ boost {
LIBS += -lboost_serialization-mt
}
macx:openmp {
# clang 12+ is OK to build Natron, but libomp 12+ has a bug on macOS when
# lanching tasks from a background thread, see https://bugs.llvm.org/show_bug.cgi?id=50579
LIBS += -L/opt/local/lib -L/opt/local/lib/libomp -liomp5
QMAKE_CC = /opt/local/bin/clang-mp-12
QMAKE_CXX = /opt/local/bin/clang++-mp-12
# Recent clang cannot compile QtMac.mm
QMAKE_OBJECTIVE_CC = clang
QMAKE_OBJECTIVE_CXX = clang++
QMAKE_LINK = $$QMAKE_CXX

INCLUDEPATH += /opt/local/include /opt/local/include/libomp
LIBS += -L/opt/local/lib -L/opt/local/lib/libomp -liomp5
cc_setting.name = CC
cc_setting.value = $$QMAKE_CC
cxx_setting.name = CXX
cxx_setting.value = $$QMAKE_CXX
# These settings are useless, unless someone finds out if there is a variable
# to override the Objective-C compiler.
objective_cc_setting.name = OBJECTIVE_CC
objective_cc_setting.value = $$QMAKE_OBJECTIVE_CC
objective_cxx_setting.name = OBJECTIVE_CXX
objective_cxx_setting.value = $$QMAKE_OBJECTIVE_CXX
ld_setting.name = LD
ld_setting.value = $$QMAKE_CC
ldplusplus_setting.name = LDPLUSPLUS
ldplusplus_setting.value = $$QMAKE_CXX
QMAKE_MAC_XCODE_SETTINGS += cc_setting cxx_setting ld_setting ldplusplus_setting
ldxx_setting.name = LDPLUSPLUS
ldxx_setting.value = $$QMAKE_CXX
QMAKE_MAC_XCODE_SETTINGS += cc_setting cxx_setting objective_cc_setting objective_cxx_setting ld_setting ldxx_setting
QMAKE_FLAGS = "-B /usr/bin"

# clang (as of 12.0.1) does not yet support index-while-building functionality
Expand Down

0 comments on commit 268d5e7

Please sign in to comment.