@@ -9,8 +9,11 @@ class KEConfig(object):
9
9
def configure (self ):
10
10
cxx = builder .DetectCxx ()
11
11
12
+ builder .cxx = cxx
13
+ builder .dist_folder = builder .AddFolder ('dist' )
14
+
12
15
if cxx .like ('gcc' ):
13
- if builder .target .platform != 'windows' :
16
+ if cxx .target .platform != 'windows' :
14
17
if cxx .version >= 'gcc-8.0' or cxx .version >= 'clang-5.0' :
15
18
cxx .cxxflags += ['-std=c++17' ]
16
19
else :
@@ -23,7 +26,7 @@ class KEConfig(object):
23
26
'_vsnprintf=vsnprintf' ,
24
27
]
25
28
cxx .linkflags += ['-lpthread' ]
26
- if builder .target .platform != 'mac' :
29
+ if cxx .target .platform != 'mac' :
27
30
cxx .linkflags += ['-lrt' ]
28
31
else :
29
32
cxx .cxxflags += [
@@ -111,13 +114,13 @@ class KEConfig(object):
111
114
cxx .cflags += ['/Oy-' ]
112
115
113
116
# Platform-specifics
114
- if builder .target .platform == 'linux' :
117
+ if cxx .target .platform == 'linux' :
115
118
cxx .defines += ['_LINUX' , 'POSIX' ]
116
119
if cxx .like ('gcc' ):
117
120
cxx .linkflags += ['-static-libgcc' ]
118
121
elif cxx .like ('clang' ):
119
122
cxx .linkflags += ['-lgcc_eh' ]
120
- elif builder .target .platform == 'mac' :
123
+ elif cxx .target .platform == 'mac' :
121
124
cxx .defines += ['OSX' , '_OSX' , 'POSIX' ]
122
125
cxx .cflags += ['-mmacosx-version-min=10.7' ]
123
126
cxx .linkflags += [
@@ -126,7 +129,7 @@ class KEConfig(object):
126
129
'-stdlib=libc++' ,
127
130
]
128
131
cxx .cxxflags += ['-stdlib=libc++' ]
129
- elif builder .target .platform == 'windows' :
132
+ elif cxx .target .platform == 'windows' :
130
133
cxx .defines += ['WIN32' , '_WINDOWS' ]
131
134
132
135
def Program (self , context , name ):
0 commit comments