bsd.compiler.mk (1c19778e8d2129c47cb7300920531c1e7e47a9ae) | bsd.compiler.mk (bd871f14b75ab0378391328ab4d46e94ec94afa3) |
---|---|
1# $FreeBSD$ 2 | 1# $FreeBSD$ 2 |
3.if ${MACHINE} == "common" 4COMPILER_TYPE= none 5.endif | 3.if !target(__<bsd.compiler.mk>__) 4__<bsd.compiler.mk>__: |
6 7.if !defined(COMPILER_TYPE) 8. if ${CC:T:Mgcc*} 9COMPILER_TYPE:= gcc 10. elif ${CC:T:Mclang} 11COMPILER_TYPE:= clang 12. else 13_COMPILER_VERSION!= ${CC} --version --- 7 unchanged lines hidden (view full) --- 21.error Unable to determine compiler type for ${CC}. Consider setting COMPILER_TYPE. 22. endif 23. undef _COMPILER_VERSION 24. endif 25.endif 26 27.if ${COMPILER_TYPE} == "clang" 28COMPILER_FEATURES= c++11 | 5 6.if !defined(COMPILER_TYPE) 7. if ${CC:T:Mgcc*} 8COMPILER_TYPE:= gcc 9. elif ${CC:T:Mclang} 10COMPILER_TYPE:= clang 11. else 12_COMPILER_VERSION!= ${CC} --version --- 7 unchanged lines hidden (view full) --- 20.error Unable to determine compiler type for ${CC}. Consider setting COMPILER_TYPE. 21. endif 22. undef _COMPILER_VERSION 23. endif 24.endif 25 26.if ${COMPILER_TYPE} == "clang" 27COMPILER_FEATURES= c++11 |
29.if !defined(_COMPILER_VERSION) 30_COMPILER_VERSION!= ${CC} --version 31.endif 32# some warnings are version specific 33COMPILER_VERSION:= ${_COMPILER_VERSION:M[1-9].[0-9]*} | |
34.else 35COMPILER_FEATURES= 36.endif | 28.else 29COMPILER_FEATURES= 30.endif |
31 32.endif # !target(__<bsd.compiler.mk>__) |
|