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

[flang] Set compile definitions for flang-rt build on AIX #127919

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

kkwli
Copy link
Collaborator

@kkwli kkwli commented Feb 19, 2025

After b55f751 (PR #110217), the flang-rt build on AIX is missing -D_LARGE_FILE_API -D_XOPEN_SOURCE=700 in compiling the source. This patch is to add the compile definitions.

@kkwli kkwli self-assigned this Feb 19, 2025
@kkwli kkwli changed the title [flang] Set compile defintions for flang-rt build on AIX [flang] Set compile definitions for flang-rt build on AIX Feb 19, 2025
Copy link
Contributor

@madanial0 madanial0 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@DanielCChen DanielCChen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

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

Would this otherwise come from

if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
?

Besides such global configuration changes not conforming modern CMake, this didn't work for standalone Flang builds either.

@kkwli
Copy link
Collaborator Author

kkwli commented Feb 21, 2025

Would this otherwise come from

if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")

?

Yes, it is from there.

Co-authored-by: Michael Kruse <github@meinersbur.de>
@kkwli
Copy link
Collaborator Author

kkwli commented Feb 24, 2025

Besides such global configuration changes not conforming modern CMake, this didn't work for standalone Flang builds either.

I will take a look of it.

@kkwli kkwli merged commit 7262a1e into llvm:main Feb 24, 2025
9 checks passed
joaosaffran pushed a commit to joaosaffran/llvm-project that referenced this pull request Feb 27, 2025
After commit b55f751, the flang-rt build on AIX is missing `-D_LARGE_FILE_API 
-D_XOPEN_SOURCE=700` in compiling the source. This patch is to add the 
compile definitions.

---------

Co-authored-by: Michael Kruse <github@meinersbur.de>
YutongZhuu pushed a commit to YutongZhuu/llvm-project that referenced this pull request Mar 8, 2025
After commit b55f751, the flang-rt build on AIX is missing `-D_LARGE_FILE_API 
-D_XOPEN_SOURCE=700` in compiling the source. This patch is to add the 
compile definitions.

---------

Co-authored-by: Michael Kruse <github@meinersbur.de>
YutongZhuu pushed a commit to YutongZhuu/llvm-project that referenced this pull request Mar 8, 2025
After commit b55f751, the flang-rt build on AIX is missing `-D_LARGE_FILE_API 
-D_XOPEN_SOURCE=700` in compiling the source. This patch is to add the 
compile definitions.

---------

Co-authored-by: Michael Kruse <github@meinersbur.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants