This patch simply moves the special handling for linux files to a
subdirectory. This is done to make it easier in the future to extend
this support to targets (like the GPU) that will have different
dependencies.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/File/CMakeLists.txt | ||
---|---|---|
37 | Since the targets are moved to separate sub-folders, shall we drop the prefix ${LIBC_TARGET_OS}_ from the target name? |
libc/src/__support/File/CMakeLists.txt | ||
---|---|---|
37 | We could, I was mostly just copying the interface from how we handle OSUtil. |
libc/src/__support/File/CMakeLists.txt | ||
---|---|---|
37 | Can you change it so that it matches other folders' structure? |
libc/src/__support/File/CMakeLists.txt | ||
---|---|---|
37 | I thought that's what we have now. For something like OSUtil we have a linux/ subdirectory which provides linux_unit. |
libc/src/__support/File/CMakeLists.txt | ||
---|---|---|
37 | So for example you can see that in OSUtil, each sub-target has io.h or syscall.h instead of target_io.h or target_syscall.h |
libc/src/__support/File/CMakeLists.txt | ||
---|---|---|
37 | Well the files are called file.cpp and dir.cpp, it's just the CMake target name that's different, I guess in the off-chance that we'd ever build two of these at one time, like there's a generic version or something. |
Since the targets are moved to separate sub-folders, shall we drop the prefix ${LIBC_TARGET_OS}_ from the target name?