Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard resource access header with __OBJC__ to avoid including Foundation.h #7962

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rjmansfield
Copy link

Guard resource access header with OBJC to avoid including Foundation.h in languages that do not support it. i.e. non-objc/c++

Add check the file extension for assembly files to not include Foundation.h there as well.

Fixes: #7949

…ion.h

in languages that do not support it.

Add check the file extension for assembly files to not include
Foundation.h there as well.

Fixes: swiftlang#7949
@dschaefer2
Copy link
Member

@swift-ci please test

@rjmansfield
Copy link
Author

Window CI builders appears to be out of disk space.

C:\Users\swift-ci\jenkins\workspace\swiftpm-PR-windows\swift\lib\Serialization\Serialization.cpp : fatal error C1085: Cannot write compiler generated file: 'T:\5\tools\swift\lib\Serialization\CMakeFiles\swiftSerialization.dir\Serialization.cpp.obj': No space left on device
ninja: build stopped: subcommand failed.

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a test that verifies the desired behavior?

@MaxDesiatov MaxDesiatov added bug needs tests This change needs test coverage labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs tests This change needs test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

swift build "fatal error: too many errors emitted" when specifying resources in Package.swift
3 participants