llvm-project/clang/tools/driver
Daniel Rodríguez Troitiño d11b9fa3bf [clang][macho] Add support for -darwin-target-variant-sdk-version in cc1as
D121868 provided support for -darwin-target-variant-triple, but the
support for -darwin-target-variant-sdk-version was still missing for
cc1as. These changes build upon the previous and provides such support.

- Extracted the common code to handle -darwin-target-variant-triple and
  -darwin-target-variant-sdk-version in the Darwin toolchain to a method
  that can be used for both the cc1 and the cc1as job construction.
  cc1as does not support some of the parameters that were provided to
  cc1, so the same code cannot be used for both.
- Invoke that new common code when constructing a cc1as invocation.
- Parse the new -darwin-target-variant-sdk-version in the cc1as driver.
  Apply its value to the MCObjectFileInfo to generate the right values
  in the object files.
- Includes two new tests that check that cc1as uses the provided values
  in -darwin-target-variant-sdk and that the Clang driver creates the
  jobs with the correct arguments.

Differential Revision: https://reviews.llvm.org/D135729
2022-10-14 14:33:10 -07:00
..
CMakeLists.txt [CMake] Add `CLANG_ENABLE_HLSL` CMake option 2022-09-27 12:33:22 -05:00
Info.plist.in
cc1_main.cpp Revert "[Clang] change default storing path of `-ftime-trace`" 2022-09-03 01:38:37 -07:00
cc1as_main.cpp [clang][macho] Add support for -darwin-target-variant-sdk-version in cc1as 2022-10-14 14:33:10 -07:00
cc1gen_reproducer_main.cpp [SystemZ][z/OS] Set more text files as text 2021-04-19 09:31:46 -04:00
driver.cpp [Support] Class for response file expansion (NFC) 2022-09-29 19:15:01 +07:00