-
Notifications
You must be signed in to change notification settings - Fork 121
Update TestSuiteBuilder.getLlvmTestSuiteSteps factory. #656
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
base: main
Are you sure you want to change the base?
Conversation
Added new optional arguments: * compiler_flags - common flags for C and C++ compilers. * linker_flags - common linker flags for all exe/module/shared configurations. * src_dir - source dir for the test suite source code (within prop:buildir). * obj_dir - build dir for the test suite (within prop:buildir). Added new output properties: * ts_srcdir * ts_objdir
| cxx_flags = compiler_flags | ||
| if "CMAKE_C_FLAGS" in cmake_definitions: | ||
| c_flags = util.Interpolate("%(kw:c_flags)s %(kw:flags)s", | ||
| c_flags = cflags, flags = cmake_definitions["CMAKE_C_FLAGS"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cflags seems undefined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, thank you. I'll update accordingly.
|
|
||
| path_suffix = src_dir or "llvm-test-suite") | ||
| test_suite_obj_dir = util.Interpolate("%(prop:builddir)s/%(kw:path_suffix)s", | ||
| path_suffix = obj_dir or util.Interpolate("%(prop:objdir:-build)s/llvm-test-suite")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What %(prop:objdir:-build)s means?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means - use a value of the 'objdir' property or the "build" string instead if 'objdir' is not defined. I.e. "build" is default value there.
Added new optional arguments:
Added new output properties:
The 'compiler_flags' argument extends or adds the following CMake configuration parameters to the appropriate step: CMAKE_C_FLAGS and CMAKE_CXX_FLAGS. The 'linker_flags' argument extends or adds the following CMake configuration parameters accordingly: CMAKE_EXE_LINKER_FLAGS, CMAKE_MODULE_LINKER_FLAGS and CMAKE_SHARED_LINKER_FLAGS.