mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix for clang3.4.2
This commit is contained in:
parent
3df16007a5
commit
3d89eae1e9
2 changed files with 15 additions and 6 deletions
|
@ -9,9 +9,10 @@
|
||||||
#define SPROUT_WORKAROUND_STD_CSTDDEF_HPP
|
#define SPROUT_WORKAROUND_STD_CSTDDEF_HPP
|
||||||
|
|
||||||
#include <sprout/config.hpp>
|
#include <sprout/config.hpp>
|
||||||
|
#include <sprout/detail/predef.hpp>
|
||||||
|
|
||||||
#if defined(__clang__) && defined(__GLIBCXX__)
|
#if defined(__clang__) && defined(__GLIBCXX__)
|
||||||
# if (__clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 5)) && (__GLIBCXX__ >= 20140422)
|
# if SPROUT_CLANG_EARLIER(3, 4, 2) && (__GLIBCXX__ >= 20140422)
|
||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
#
|
#
|
||||||
# if defined(__STDDEF_H)
|
# if defined(__STDDEF_H)
|
||||||
|
|
|
@ -40,17 +40,25 @@ def main():
|
||||||
bin = "%s/test.%s.out" % (opts.stagedir, base.replace('.', ''))
|
bin = "%s/test.%s.out" % (opts.stagedir, base.replace('.', ''))
|
||||||
compile_log = "%s/test.%s.compile.log" % (opts.stagedir, base.replace('.', ''))
|
compile_log = "%s/test.%s.compile.log" % (opts.stagedir, base.replace('.', ''))
|
||||||
execute_log = "%s/test.%s.execute.log" % (opts.stagedir, base.replace('.', ''))
|
execute_log = "%s/test.%s.execute.log" % (opts.stagedir, base.replace('.', ''))
|
||||||
|
fail_log = "%s/fail.log" % (opts.stagedir)
|
||||||
compiler = "%s/%s/bin/%s++" % (root, base, name.rstrip('c')) if version != "." else "%s++" % name.rstrip('c')
|
compiler = "%s/%s/bin/%s++" % (root, base, name.rstrip('c')) if version != "." else "%s++" % name.rstrip('c')
|
||||||
return "%s -o %s" \
|
command = "%s -o %s" \
|
||||||
" %s %s" \
|
" %s %s" \
|
||||||
" %s %s" \
|
" %s %s" \
|
||||||
" %s > %s 2>&1" \
|
" %s" \
|
||||||
" && %s > %s 2>&1" \
|
|
||||||
% (compiler, bin,
|
% (compiler, bin,
|
||||||
std_options.get(base, ''), opts.all_options,
|
std_options.get(base, ''), opts.all_options,
|
||||||
compiler_specific_options.get(name, ''), version_specific_options.get(base, ''),
|
compiler_specific_options.get(name, ''), version_specific_options.get(base, ''),
|
||||||
opts.test_cpp, compile_log,
|
opts.test_cpp
|
||||||
bin, execute_log
|
)
|
||||||
|
fail_info = "%s : %s" % (base, command)
|
||||||
|
return "(" \
|
||||||
|
" %s > %s 2>&1" \
|
||||||
|
" && %s > %s 2>&1" \
|
||||||
|
" ) || !(echo %s >> %s)" \
|
||||||
|
% (command, compile_log,
|
||||||
|
bin, execute_log,
|
||||||
|
fail_info, fail_log
|
||||||
)
|
)
|
||||||
|
|
||||||
pool = multiprocessing.Pool(opts.max_procs if opts.max_procs != 0 else None)
|
pool = multiprocessing.Pool(opts.max_procs if opts.max_procs != 0 else None)
|
||||||
|
|
Loading…
Reference in a new issue