当使用.cpp
强制在安装了gcc和clang的系统上使用clang时,clang ++用于编译-fsanitize=unsigned-integer-overflow
文件,但g ++用于最终链接。当使用UBSAN时会出现问题,因为g ++不知道clang选项---
buildpack: https://github.com/cloudfoundry/java-buildpack.git
memory: 1024M
env:
APPLICATION_URL: http://bignibou-server.cfapps.io/
APPLICATION_MAIL_NO_REPLY_ADDRESS: balteo@bignibou-server.cfapps.io
SPRING_PROFILES_ACTIVE: cloud
applications:
- name: bignibou-server
path: bignibou-server/build/libs/bignibou-server.jar
env:
APPLICATION_GOOGLE_API_KEY: ******************
- name: bignibou-batch
path: bignibou-batch/build/libs/bignibou-batch.jar
no-hostname: true
no-route: true
command: null
health-check-type: none
env:
JAVA_OPTS: -Dspring.batch.job.names=messagesDigestMailingJob
。如何强制qmake使用clang进行链接呢?
答案 0 :(得分:1)
除了为QMAKE_LINK=clang++
指定的内容外,您还需要指定QMAKE_CXX
。