We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: db359f7c39800a3e55bf94a0e124261c
Issue Description:
When building llbuild with SwiftPM, we currently get the following error:
In file included from /Users/david/Projects/swift/llbuild/lib/llvm/Support/Path.cpp:14: /Users/david/Projects/swift/llbuild/lib/llvm/Support/include/llvm/Support/COFF.h:541:5: error: expected identifier DEBUG, ^ <command line>:2:15: note: expanded from here #define DEBUG 1 ^ 1 error generated.
This seems to be because clang is invoked with a -DDEBUG=1 define that clashes with llvmSupport's DataDirectoryIndex enum:
-DDEBUG=1
DataDirectoryIndex
enum DataDirectoryIndex { EXPORT_TABLE = 0, IMPORT_TABLE, RESOURCE_TABLE, EXCEPTION_TABLE, CERTIFICATE_TABLE, BASE_RELOCATION_TABLE, DEBUG, // HERE ARCHITECTURE, GLOBAL_PTR, TLS_TABLE, LOAD_CONFIG_TABLE, BOUND_IMPORT, IAT, DELAY_IMPORT_DESCRIPTOR, CLR_RUNTIME_HEADER, NUM_DATA_DIRECTORIES };
The only solution I've found for now is to tell SwiftPM to undefine DEBUG:
swift build -Xcxx -UDEBUG
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Additional Detail from JIRA
md5: db359f7c39800a3e55bf94a0e124261c
Issue Description:
When building llbuild with SwiftPM, we currently get the following error:
This seems to be because clang is invoked with a
-DDEBUG=1
define that clashes with llvmSupport'sDataDirectoryIndex
enum:The only solution I've found for now is to tell SwiftPM to undefine DEBUG:
The text was updated successfully, but these errors were encountered: