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

[LLVM16][build] Specify LLVM_MAIN_SRC_DIR when running build-flang.sh #1403

Merged

Conversation

bryanpkc
Copy link
Collaborator

@bryanpkc bryanpkc commented Jul 3, 2023

Otherwise Classic Flang's CMakeLists.txt will be unable to find llvm-lit and cannot generate test-related goals, e.g. check-all.

Also fix a typo in build-flang.sh that prevented the option from being passed to CMake correctly.

Also add support for the same variable to libpgmath's CMakeLists.txt, as well as scripts/build_flang.py.

Also modify helpers in runtime/libpgmath/cmake/modules/LibmathUtils.cmake, e.g. libpgmath_say, libpgmath_warning_say, to print all given arguments instead of only the first named argument. This allows callers to break long strings into multiple lines, resulting in better-formatted code.

Otherwise Classic Flang's CMakeLists.txt will be unable to find llvm-lit and
cannot generate test-related goals, e.g. `check-all`.

Also fix a typo in build-flang.sh that prevented the option from being passed
to CMake correctly.
@bryanpkc
Copy link
Collaborator Author

bryanpkc commented Jul 4, 2023

@pawosm-arm I added a couple more commits. Do they look okay to you?

@pawosm-arm
Copy link
Collaborator

@pawosm-arm I added a couple more commits. Do they look okay to you?

Yes, they do

…e tree

Support the LLVM_MAIN_SRC_DIR variable which, if set to the LLVM source tree,
allows CMake to locate llvm-lit and generate the "check-libpgmath" goal. Also
update build-flang.sh to use the variable when building libpgmath.

Also modified helpers in runtime/libpgmath/cmake/modules/LibmathUtils.cmake,
e.g. libpgmath_say, libpgmath_warning_say, to print all given arguments instead
of only the first named argument. This allows callers to break long strings
into multiple lines, resulting in better-formatted code.
@bryanpkc
Copy link
Collaborator Author

bryanpkc commented Jul 4, 2023

Merging CI-only PR with one approval.

@bryanpkc bryanpkc merged commit bbf70ee into flang-compiler:master Jul 4, 2023
6 checks passed
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.

2 participants