mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-25 00:43:44 +00:00
fix testspr
This commit is contained in:
parent
7640eca894
commit
6e5004b6f4
2 changed files with 4 additions and 8 deletions
|
@ -79,9 +79,6 @@ namespace sprout {
|
||||||
, engine_(engine)
|
, engine_(engine)
|
||||||
, distribution_(distribution)
|
, distribution_(distribution)
|
||||||
{}
|
{}
|
||||||
SPROUT_CONSTEXPR operator result_type() const SPROUT_NOEXCEPT {
|
|
||||||
return result_;
|
|
||||||
}
|
|
||||||
SPROUT_CONSTEXPR random_result operator()() const {
|
SPROUT_CONSTEXPR random_result operator()() const {
|
||||||
return distribution_(engine_);
|
return distribution_(engine_);
|
||||||
}
|
}
|
||||||
|
@ -210,9 +207,6 @@ namespace sprout {
|
||||||
: result_(result)
|
: result_(result)
|
||||||
, engine_(engine)
|
, engine_(engine)
|
||||||
{}
|
{}
|
||||||
SPROUT_CONSTEXPR operator result_type() const SPROUT_NOEXCEPT {
|
|
||||||
return result_;
|
|
||||||
}
|
|
||||||
SPROUT_CONSTEXPR random_result operator()() const {
|
SPROUT_CONSTEXPR random_result operator()() const {
|
||||||
return engine_();
|
return engine_();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,15 +56,17 @@ def main():
|
||||||
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)
|
||||||
return sum(result != 0 for result in pool.map(
|
return sum(result != 0 for result in pool.map(
|
||||||
build,
|
build,
|
||||||
[format_command('gcc', version, opts.gcc_root)
|
([format_command('gcc', version, opts.gcc_root)
|
||||||
for version in opts.gcc_version.split(' ')
|
for version in opts.gcc_version.split(' ')
|
||||||
] if opts.gcc_version != ' '
|
] if opts.gcc_version != ' '
|
||||||
else []
|
else []
|
||||||
|
)
|
||||||
+
|
+
|
||||||
[format_command('clang', version, opts.clang_root)
|
([format_command('clang', version, opts.clang_root)
|
||||||
for version in opts.clang_version.split(' ')
|
for version in opts.clang_version.split(' ')
|
||||||
] if opts.clang_version != ' '
|
] if opts.clang_version != ' '
|
||||||
else []
|
else []
|
||||||
|
)
|
||||||
))
|
))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue