Skip to content

Commit b1f61f8

Browse files
committed
Fixes for dart detection and newer compilers
1 parent fd81f88 commit b1f61f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

waf_tools/dart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def get_directory(filename, dirs):
166166

167167
if dart_major < 6:
168168
raise Exception('We need DART version at least 6.0.0')
169-
if dart_major > 6 or (dart_major == 6 and dart_minor > 4):
169+
if dart_major > 6:
170170
dart_load_prefix = 'io'
171171

172172
dart_include = []

wscript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def configure(conf):
8686

8787
conf.env.LIB_THREADS = ['pthread']
8888

89+
conf.env['CXXFLAGS'] = conf.env['CXXFLAGS'] + ['-faligned-new']
90+
8991

9092
def build(bld):
9193
bld.recurse('src/')

0 commit comments

Comments
 (0)