Skip to content

Commit 42bfe14

Browse files
committed
build fix
1 parent 76caa50 commit 42bfe14

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

flang-rt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ endif()
362362
# TODO: Does this a build-dependency on the module files?
363363
cmake_path(GET FLANG_RT_INSTALL_RESOURCE_MOD_PATH PARENT_PATH install_mod_parent_path)
364364
message("FLANG_RT_INSTALL_RESOURCE_MOD_PATH: ${FLANG_RT_INSTALL_RESOURCE_MOD_PATH}")
365-
install(DIRECTORY "${FLANG_RT_OUTPUT_RESOURCE_MOD_DIR}"
365+
install(DIRECTORY "${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}"
366366
DESTINATION "${install_mod_parent_path}"
367367
)
368368
#install(FILES "${FLANG_RT_OUTPUT_RESOURCE_MOD_DIR}/*.mod"

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ set(Fortran_BUILDING_INSTRINSIC_MODULES TRUE)
306306

307307

308308
#add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:SHELL:-module-dir> $<$<COMPILE_LANGUAGE:Fortran>:"${FLANG_RT_OUTPUT_RESOURCE_MOD_DIR}">)
309-
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:SHELL:"-fintrinsic-modules-path"> $<$<COMPILE_LANGUAGE:Fortran>:${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}>)
309+
add_compile_options("$<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fintrinsic-modules-path>" "$<$<COMPILE_LANGUAGE:Fortran>:${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}>")
310310

311311
# Phony target for intrinsics
312312
#add_custom_target(flangrt-mod)
@@ -372,7 +372,7 @@ else()
372372
ADDITIONAL_HEADERS ${public_headers} ${private_headers}
373373
COMPILE_OPTIONS
374374
"$<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fintrinsic-modules-path>"
375-
"$<$<COMPILE_LANGUAGE:Fortran>:${FLANG_RT_OUTPUT_RESOURCE_MOD_DIR}>"
375+
"$<$<COMPILE_LANGUAGE:Fortran>:${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}>"
376376
TARGET_PROPERTIES
377377
Fortran_BUILDING_INTRINSIC_MODULES TRUE
378378
Fortran_BUILDING_INSTRINSIC_MODULES TRUE
@@ -382,7 +382,7 @@ else()
382382
#TODO: Better as -fintrinsic-modules-path, need added option
383383
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fintrinsic-modules-path>" "$<$<COMPILE_LANGUAGE:Fortran>:${CMAKE_CURRENT_BINARY_DIR}/module.${suffix}>")
384384
target_compile_options(${name}.intrinsics PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fintrinsic-modules-path>" "$<$<COMPILE_LANGUAGE:Fortran>:${CMAKE_CURRENT_BINARY_DIR}/module.${suffix}>")
385-
target_compile_options(${name} PRIVATE "$<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fintrinsic-modules-path>" "$<$<COMPILE_LANGUAGE:Fortran>:${FLANG_RT_OUTPUT_RESOURCE_MOD_DIR}>")
385+
target_compile_options(${name} PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:SHELL:-fintrinsic-modules-path> $<$<COMPILE_LANGUAGE:Fortran>:${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}>)
386386

387387
if (msvc_lib)
388388
set_target_properties(${name}

flang/cmake/modules/FlangCommon.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set(FLANG_RUNTIME_F128_MATH_LIB "" CACHE STRING
2424
is mapped to long double, etc."
2525
)
2626
if (FLANG_RUNTIME_F128_MATH_LIB)
27-
add_compile_definitions(FLANG_RUNTIME_F128_MATH_LIB="${FLANG_RUNTIME_F128_MATH_LIB}")
27+
add_compile_definitions("FLANG_RUNTIME_F128_MATH_LIB=${FLANG_RUNTIME_F128_MATH_LIB}")
2828
endif()
2929

3030
# Check if 128-bit float computations can be done via long double

0 commit comments

Comments
 (0)