FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node/tools/wafadmin/Tools/gdc.py at master · elarkin/node · GitHub
elarkin
/
node
Public
forked from
nodejs/node-v0.x-archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node
/
tools
/
wafadmin
/
Tools
/
gdc.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (39 loc) · 1.18 KB
Breadcrumbs
node
/
tools
/
wafadmin
/
Tools
/
gdc.py
Copy path
File metadata and controls
52 lines (39 loc) · 1.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2007 (dv)
import
sys
import
Utils
,
ar
from
Configure
import
conftest
@
conftest
def
find_gdc
(
conf
):
conf
.
find_program
(
'gdc'
,
var
=
'D_COMPILER'
,
mandatory
=
True
)
@
conftest
def
common_flags_gdc
(
conf
):
v
=
conf
.
env
# _DFLAGS _DIMPORTFLAGS
# for mory info about the meaning of this dict see dmd.py
v
[
'DFLAGS'
]
=
[]
v
[
'D_SRC_F'
]
=
''
v
[
'D_TGT_F'
]
=
[
'-c'
,
'-o'
,
''
]
v
[
'DPATH_ST'
]
=
'-I%s'
# template for adding import paths
# linker
v
[
'D_LINKER'
]
=
v
[
'D_COMPILER'
]
v
[
'DLNK_SRC_F'
]
=
''
v
[
'DLNK_TGT_F'
]
=
[
'-o'
,
''
]
v
[
'DLIB_ST'
]
=
'-l%s'
# template for adding libs
v
[
'DLIBPATH_ST'
]
=
'-L%s'
# template for adding libpaths
# debug levels
v
[
'DLINKFLAGS'
]
=
[]
v
[
'DFLAGS_OPTIMIZED'
]
=
[
'-O3'
]
v
[
'DFLAGS_DEBUG'
]
=
[
'-O0'
]
v
[
'DFLAGS_ULTRADEBUG'
]
=
[
'-O0'
]
v
[
'D_shlib_DFLAGS'
]
=
[]
v
[
'D_shlib_LINKFLAGS'
]
=
[
'-shared'
]
v
[
'DHEADER_ext'
]
=
'.di'
v
[
'D_HDR_F'
]
=
'-fintfc -fintfc-file='
def
detect
(
conf
):
conf
.
find_gdc
()
conf
.
check_tool
(
'ar'
)
conf
.
check_tool
(
'd'
)
conf
.
common_flags_gdc
()
conf
.
d_platform_flags
()
Back
|
FazBrowse Home
|
New Git URL