head	1.4;
access;
symbols
	netbsd-11-0-RC7:1.4
	netbsd-11-0-RC6:1.4
	netbsd-11-0-RC5:1.4
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.8
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.6
	perseant-exfatfs-base:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.4
	netbsd-10-base:1.4
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.2
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	cjep_staticlib_x:1.3.0.4
	cjep_staticlib_x-base:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.2
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	phil-wifi-20191119:1.3;
locks; strict;
comment	@# @;


1.4
date	2021.05.30.01.56.55;	author joerg;	state Exp;
branches;
next	1.3;
commitid	3Zpdqzdbkf2q47VC;

1.3
date	2019.11.18.19.54.23;	author joerg;	state Exp;
branches
	1.3.4.1;
next	1.2;
commitid	WzkUljFdybQZ0nLB;

1.2
date	2019.11.16.15.51.26;	author joerg;	state Exp;
branches;
next	1.1;
commitid	27O2svtkgHCBJ5LB;

1.1
date	2019.11.11.22.45.14;	author joerg;	state Exp;
branches;
next	;
commitid	IMynySmLyNzibuKB;

1.3.4.1
date	2021.05.31.22.10.11;	author cjep;	state Exp;
branches;
next	;
commitid	eWz9SBW0XqKjJlVC;


desc
@@


1.4
log
@Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9

This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
@
text
@#	$NetBSD: Makefile,v 1.3 2019/11/18 19:54:23 joerg Exp $

LIB=	clangAST

.include <bsd.init.mk>

.PATH: ${CLANG_SRCDIR}/lib/AST

SRCS+=	APValue.cpp \
	ASTConcept.cpp \
	ASTConsumer.cpp \
	ASTContext.cpp \
	ASTDiagnostic.cpp \
	ASTDumper.cpp \
	ASTImporter.cpp \
	ASTImporterLookupTable.cpp \
	ASTStructuralEquivalence.cpp \
	ASTTypeTraits.cpp \
	AttrImpl.cpp \
	CommentBriefParser.cpp \
	CommentCommandTraits.cpp \
	Comment.cpp \
	CommentLexer.cpp \
	CommentParser.cpp \
	CommentSema.cpp \
	ComparisonCategories.cpp \
	ComputeDependence.cpp \
	CXXInheritance.cpp \
	DataCollection.cpp \
	DeclarationName.cpp \
	DeclBase.cpp \
	Decl.cpp \
	DeclCXX.cpp \
	DeclFriend.cpp \
	DeclGroup.cpp \
	DeclObjC.cpp \
	DeclOpenMP.cpp \
	DeclPrinter.cpp \
	DeclTemplate.cpp \
	ExprClassification.cpp \
	ExprConcepts.cpp \
	ExprConstant.cpp \
	Expr.cpp \
	ExprCXX.cpp \
	ExprObjC.cpp \
	ExternalASTMerger.cpp \
	ExternalASTSource.cpp \
	FormatString.cpp \
	InheritViz.cpp \
	ItaniumCXXABI.cpp \
	ItaniumMangle.cpp \
	JSONNodeDumper.cpp \
	Mangle.cpp \
	MicrosoftCXXABI.cpp \
	MicrosoftMangle.cpp \
	NestedNameSpecifier.cpp \
	NSAPI.cpp \
	ODRHash.cpp \
	OpenMPClause.cpp \
	OSLog.cpp \
	ParentMapContext.cpp \
	ParentMap.cpp \
	PrintfFormatString.cpp \
	QualTypeNames.cpp \
	RawCommentList.cpp \
	RecordLayoutBuilder.cpp \
	RecordLayout.cpp \
	ScanfFormatString.cpp \
	SelectorLocationsKind.cpp \
	Stmt.cpp \
	StmtCXX.cpp \
	StmtIterator.cpp \
	StmtObjC.cpp \
	StmtOpenMP.cpp \
	StmtPrinter.cpp \
	StmtProfile.cpp \
	StmtViz.cpp \
	TemplateBase.cpp \
	TemplateName.cpp \
	TextNodeDumper.cpp \
	Type.cpp \
	TypeLoc.cpp \
	TypePrinter.cpp \
	VTableBuilder.cpp \
	VTTBuilder.cpp

.PATH: ${CLANG_SRCDIR}/lib/AST/Interp

SRCS+=	ByteCodeEmitter.cpp \
	ByteCodeExprGen.cpp \
	ByteCodeGenError.cpp \
	ByteCodeStmtGen.cpp \
	Context.cpp \
	Descriptor.cpp \
	Disasm.cpp \
	EvalEmitter.cpp \
	Frame.cpp \
	Function.cpp \
	Interp.cpp \
	InterpBlock.cpp \
	InterpFrame.cpp \
	InterpStack.cpp \
	InterpState.cpp \
	Pointer.cpp \
	PrimType.cpp \
	Program.cpp \
	Record.cpp \
	Source.cpp \
	State.cpp

CLANG_TABLEGEN_SRC=	Opcodes.td
CLANG_TABLEGEN_OUTPUT= \
	Opcodes.inc|-gen-clang-opcodes

.include "${.PARSEDIR}/../../tablegen.mk"

.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif
@


1.3
log
@Use a big hammer and disabling strict aliasing for the tools build or
when using GCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2019/11/16 15:51:26 joerg Exp $
d10 1
d27 1
d41 1
d61 1
d89 1
a89 2
SRCS+=	Block.cpp \
	ByteCodeEmitter.cpp \
d100 1
@


1.3.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2021/05/30 01:56:55 joerg Exp $
a9 1
	ASTConcept.cpp \
a25 1
	ComputeDependence.cpp \
a38 1
	ExprConcepts.cpp \
a57 1
	ParentMapContext.cpp \
d85 2
a86 1
SRCS+=	ByteCodeEmitter.cpp \
a96 1
	InterpBlock.cpp \
@


1.2
log
@Build libclangAST with -O1 when the host compiler is GCC 7 to avoid
miscompiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2019/11/11 22:45:14 joerg Exp $
a114 4
BAD_GCC_VERSION!=	case `${HOST_CXX} --version 2> /dev/null` in [cg]++*7.4*) echo yes ;; *) echo no ;; esac
.  if ${BAD_GCC_VERSION} == "yes"
HOST_CXXFLAGS+=	-O0
.  endif
@


1.1
log
@Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2018/07/17 18:55:29 joerg Exp $
d115 4
@

