Skip to content

Commit 7d50492

Browse files
committed
Fix for issue #1289.
The generated files miss the path.
1 parent 4ecb2f7 commit 7d50492

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ configure_file(${PROJECT_PARENT_DIR}/${LDC_EXE}_install.conf.in ${PROJECT_BINARY
219219

220220
set(GCCBUILTINS "")
221221
function(gen_gccbuiltins name)
222-
set(module "gccbuiltins_${name}.di")
222+
set(module "${PROJECT_BINARY_DIR}/gccbuiltins_${name}.di")
223223
if (GCCBUILTINS STREQUAL "")
224224
set(GCCBUILTINS "${module}" PARENT_SCOPE)
225225
else()
@@ -228,7 +228,6 @@ function(gen_gccbuiltins name)
228228
add_custom_command(
229229
OUTPUT ${module}
230230
COMMAND gen_gccbuiltins ${module} "${name}"
231-
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
232231
)
233232
endfunction()
234233

0 commit comments

Comments
 (0)