cntrump
cntrump
> How about setting the include path correctly instead? Or is that not possible in this swift package manager thing? `A` depend on package `B` use `dependencies: [.package(url:...)]` in `Package.swift`...
> Why is this building `mtest` if it's on the exclude list? It seems `.unsafeFlags(["-flto=thin", "-fmodule-map-file=modulemap/module.modulemap"])` is ignored. a new `module.modulemap` created: ``` module libtommath { umbrella "/a/b/c/libtommath" export *...
@sjaeckel How about build `libtomcrypt` as objective-c source and add `@import TomMath;` in `math/ltm_desc.c` ? I tried, it works and just `math/ltm_desc.c` modified. Package.swift of libtomcrypt ```swift .unsafeFlags(["-xobjective-c"]), ``` math/ltm_desc.c...
> [creating-c-language-targets](https://github.com/apple/swift-package-manager/blob/main/Documentation/Usage.md#creating-c-language-targets) To allow a Swift target to import a C language target, add a target dependency in the manifest file. Swift Package Manager will automatically generate a modulemap for...
Swift 5.2 Issue with headers in same dir as `.c/m` files https://forums.swift.org/t/swift-5-2-issue-with-headers-in-same-dir-as-c-m-files/33292 [PackageLoading] Handle header files in TargetSourcesBuilder https://github.com/apple/swift-package-manager/pull/2555 keeping a close watch on it.
> > Why is this building `mtest` if it's on the exclude list? > I found it, it'is a bug: https://bugs.swift.org/browse/SR-14456 https://forums.swift.org/t/unable-to-exclude-specific-headers-from-a-target/51017
Try my pr: https://github.com/briancoyner/Core-Animation-Fun-House/pull/3
Texture 里的用法,`_ASDisplayLayer.mm` ```objc - (void)_hackResetNeedsDisplay { ASDisplayNodeAssertMainThread(); // Don't listen to our subclasses crazy ideas about setContents by going through super super.contents = super.contents; } - (void)display { ASDisplayNodeAssertMainThread(); [self...
> `super` 最后的消息接收者还是 'self' `super` 就先从父类的方法开始找,找到就调用父类方法了。最后不会回到 `self` 的方法。
> 如果是这样,为啥不是self.contents=super.contents 我猜作者是防止调到子类的 `self.contents` 搞出幺蛾子