[swift-dev] Beginner's questions about building Swift from source etc.
Dmitri Gribenko
gribozavr at gmail.com
Thu Dec 10 11:11:19 CST 2015
On Thu, Dec 10, 2015 at 7:41 AM, Jens Persson <jens at bitcycle.com> wrote:
> Thanks!
> I tried the above to compile with the buildbot_osx_package preset. It kind
> of worked, but it failed while performing the tests.
> (TEST 'Swift :: Driver/Dependencies/bindings-build-record.swift' FAILED)
> So, I got a working swiftc etc but no package or toolchain or anything (at
> least as far as I could see).
>
> However, trying out the resulting swiftc shows that it is slow, ie the
> buildbot_osx_package preset did not imply --no-assertions
> --no-swift-stdlib-assertions.
Jens,
I think you found an issue in our presets. I filed
https://bugs.swift.org/browse/SR-180 Here, we have an incorrect
workaround that causes this issue:
[preset: mixin_lightweight_assertions]
assertions
# FIXME: This should be:
# no-assertions
# swift-assertions
# ... but our tests are expecting assertions to be either on or off everywhere.
I think this hacky patch should get you unblocked (untested!):
-------------------------------------------------------------------------------------
diff --git a/utils/build-presets.ini b/utils/build-presets.ini
index 6dc6d24..1ab441f 100644
--- a/utils/build-presets.ini
+++ b/utils/build-presets.ini
@@ -462,12 +462,8 @@ swift-runtime-enable-leak-checker=1
# A mixin that enables 'lightweight' assertions that don't slow down the
# compiler significantly.
[preset: mixin_lightweight_assertions]
-assertions
-
-# FIXME: This should be:
-# no-assertions
-# swift-assertions
-# ... but our tests are expecting assertions to be either on or off everywhere.
+no-assertions
+swift-assertions
dash-dash
@@ -592,8 +588,6 @@ build-subdir=buildbot_osx
ios
tvos
watchos
-test
-validation-test
dash-dash
-------------------------------------------------------------------------------------
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the swift-dev
mailing list