Skip to content

Instantly share code, notes, and snippets.

View hpux735's full-sized avatar

Will Dillon hpux735

View GitHub Profile
I suspect it's related to linking…
So, a while back Orlando had fixed some things in Foundation (which still haven't been merged yet).
The symptom is that you'll get an error from unwrapping a nil.
When I test OSULogger (b, in the example above) without the patched Foundation I get the error.
Once I patched it, the tests pass. Then, with the same libraries and everything,
if I pull in OSUOpenCL (a) which depends on OSULogger, the tests in logger fail in the
same way as the unpatched Foundation
wdillon@beast:~/OSULogger$ swift test
Compiling Swift Module 'OSULoggertest' (2 sources)
/opt/local/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_FLAGS= -fno-stack-protector -DCMAKE_CXX_FLAGS= -fno-stack-protector -DCMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 /Users/admin/swift-build/cmark
/opt/local/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -DCMAKE_C_FLAGS= -fno-stack-protector -DCMAKE_CXX_FLAGS= -fno-stack-protector -DCMAKE_BUILD_TYPE:STRING=Release -DLLVM_ENABLE_ASSERTIONS:BOOL=TRUE -DSWIFT_ANALYZE_CODE_COVERAGE:STRING
@hpux735
hpux735 / proposal.md
Last active March 4, 2016 02:46
Draft Swift Evolution proposal

Improve the portability of Swift with differently signed char.

Introduction

In C, the signness of char is undefined. A convention is set by either the platform, such as Windows, or by the architecture ABI specification, as is typical on System-V derived systems. A subset of known platforms germane to this discussion and their char signness is provided below.