Skip to content

Commit 33421df

Browse files
committed
Don't relativize paths in cmake
1 parent a558b13 commit 33421df

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

libc/cmake/modules/LLVMLibCHeaderRules.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ function(add_gen_header target_name)
9595
file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_SOURCE_DIR} ${absolute_path})
9696
set(out_file ${LIBC_INCLUDE_DIR}/${relative_path})
9797
set(dep_file "${out_file}.d")
98-
file(RELATIVE_PATH rel_out_file ${CMAKE_BINARY_DIR} ${out_file})
99-
file(RELATIVE_PATH rel_dep_file ${CMAKE_BINARY_DIR} ${dep_file})
10098
set(yaml_file ${CMAKE_SOURCE_DIR}/${ADD_GEN_HDR_YAML_FILE})
101-
file(RELATIVE_PATH rel_yaml_file ${CMAKE_BINARY_DIR} ${yaml_file})
10299

103100
set(fq_data_files "")
104101
if(ADD_GEN_HDR_DATA_FILES)
@@ -114,10 +111,10 @@ function(add_gen_header target_name)
114111
OUTPUT ${out_file}
115112
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
116113
COMMAND ${Python3_EXECUTABLE} "${LIBC_SOURCE_DIR}/utils/hdrgen/main.py"
117-
--output ${rel_out_file}
118-
--depfile ${rel_dep_file}
114+
--output ${out_file}
115+
--depfile ${dep_file}
119116
${entry_points}
120-
${rel_yaml_file}
117+
${yaml_file}
121118
DEPENDS ${yaml_file} ${fq_data_files}
122119
DEPFILE ${dep_file}
123120
COMMENT "Generating header ${ADD_GEN_HDR_GEN_HDR} from ${yaml_file}"

0 commit comments

Comments
 (0)