-
-
Notifications
You must be signed in to change notification settings - Fork 327
/
SynDprUses.inc
63 lines (62 loc) · 2.27 KB
/
SynDprUses.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{$ifndef LVCL}
{$ifdef FPC} // we may be on Kylix or upcoming Delphi for Linux
{$ifdef Unix} // we may also be on Darwin / OSX
cthreads, // should be the very first unit - before FastMM4 e.g.
{$endif Unix}
{$ifdef FPC_X64MM_WIN} // SynFPCx64MM is not fully validated on Windows yet
{$ifdef MSWINDOWS}
SynFPCx64MM,
{$endif MSWINDOWS}
{$else}
{$ifdef FPC_X64MM}
{$ifndef MSWINDOWS}
SynFPCx64MM,
{$endif MSWINDOWS}
{$else}
{$ifdef FPC_FASTMM4}
FastMM4Messages in '..\RTL7\FastMM4Messages.pas',
FastMM4 in '..\RTL7\FastMM4.pas',
{$else}
{$ifdef FPC_SYNJEMALLOC}
SynFPCCMemAligned, // after "apt-get install libjemalloc1"
{$else}
{$ifdef FPC_SYNTBB}
SynFPCCMemAligned, // after "apt-get install libtbb2"
{$else}
{$ifdef FPC_SYNCMEM}
SynFPCCMemAligned, // you may also set FPC_NO_DEFAULT_MEMORYMANAGER
{$else}
{$ifdef FPC_CMEM}
cmem, // you may also set FPC_NO_DEFAULT_MEMORYMANAGER
{$endif FPC_CMEM}
{$endif FPC_SYNCMEM}
{$endif FPC_SYNTBB}
{$endif FPC_SYNJEMALLOC}
{$endif FPC_FASTMM4}
{$endif FPC_X64MM}
{$endif FPC_X64MM_WIN}
{$ifdef Unix} // we may also be on Darwin / OSX
{$ifdef Darwin}
// iosxwstr, // optional WideString manager for Mac
{$else}
// cwstring, // optional WideString manager
{$endif Darwin}
{$else}
{$ifopt D-} // at the moment, debug mode with cmem causes trouble
//cmem, // default FPC's heap manager is very RAM hungry (one heap per thread)
{$endif}
{$endif Unix}
{$else} // enable FastMM4 on older versions of Delphi
{$IFDEF CONDITIONALEXPRESSIONS}
{$if CompilerVersion <= 17} // Delphi 2006 (and up) have FastMM4 integrated
FastMM4Messages,
FastMM4,
{$ifend}
{$ifdef UNICODE}
{$WARN DUPLICATE_CTOR_DTOR OFF} // global at .dpr level - see QC 100815
{$endif}
{$ELSE}
FastMM4, // no conditional expressions -> versions older than Delphi 6
{$ENDIF}
{$endif FPC}
{$endif LVCL}