-
Notifications
You must be signed in to change notification settings - Fork 189
Libraries/pbxspec/Sources/PBX/FileType.cpp:51:46: error: assigning field to itself [-Werror,-Wself-assign-field] #307
Comments
port freebsd link:https://github.com/czom/xcbuild-port-BSD |
nice, I have a working port too, but will not sign the CLA with Facebook. https://github.com/saper/xcbuild (see the branches) |
This is pretty cool work guys. Just curious though, can you share what you are using xcbuild on FreeBSD for? |
I'd like to have (Pure)Darwin bootstrapped on FreeBSD without MacOS |
I would be interested in why this was originally implemented to "disinherit" _extensions, @saper did you find the design reason? I understand the code will compile but I was hoping for a comment about why the disinheritance can be discarded. |
@NaruFGT I am not sure I have done anything with it. And I am not even sure I understand what you mean... can you elaborate a bit? |
@saper in your freebsd-fixes branch, you modify pbxspec/Sources/PBX/FileType.cpp removing |
Ah, thank you. I see no way to test it (any way to have something like From what I understand we do not do any C++ inheritance here (C++ base class As I understand this is the runtime inheritance chain for the file with extension
text.xcspec gives
But sourcecode.xcspec and sourcecode.c.xcspec do not list any extensions at all. Therefore they should have no extensions and do not inherit anything. sourcecode.c.c.xcspec on the other hand defines
so I do not see any way how extensions should magically get inherited, I think this line was just developer's shorthand to indicate that this field has not been forgotten and has been explicitly left out. But this is the first time I am dealing with this so I could be all wrong. I don't know how to dump actual file type definitions though - please help if you can! |
I like the idea of providing a command to dump the computed values. It looks like we have absolutely no Tests for pbxspec/ and Tests in pbxbuild/ don't appear relevant either. I believe enumerating the calculated values would provide important diagnostic information. |
I got confirmation via the private channel that my assumption was correct - the assignment was just an indication of intent. |
Building with clang:
The text was updated successfully, but these errors were encountered: