Skip to content

Commit 2486657

Browse files
authored
Merge pull request #93 from isuruf/dependencies
CMake: Fix missing symbols introduced in gh-90
2 parents f341e14 + a264319 commit 2486657

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

runtime/flang/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,12 @@ SET(FTN_SUPPORT
335335
descIntrins.c
336336
descFioUtil.c
337337
descRW.c
338+
ieee_arithmetic.F95
339+
ieee_exceptions.F95
338340
ieee_features.F95
339341
initpar.c
340342
inquire.c
343+
iso_c_bind.F95
341344
iso_fortran_env.f90
342345
ldread.c
343346
ldwrite.c
@@ -573,12 +576,14 @@ target_include_directories(flang_shared
573576
add_dependencies(flang_static
574577
flang1
575578
flang2
579+
ieee_arithmetic
576580
)
577581

578582
# Make sure the compiler is built before we bootstrap
579583
add_dependencies(flang_shared
580584
flang1
581585
flang2
586+
ieee_arithmetic
582587
)
583588

584589
add_dependencies(iso_c_bind
@@ -590,9 +595,6 @@ add_dependencies(ieee_arithmetic
590595
iso_c_bind
591596
)
592597

593-
target_link_libraries(flang_static iso_c_bind ieee_arithmetic)
594-
target_link_libraries(flang_shared iso_c_bind ieee_arithmetic)
595-
596598
if (NOT MSVC)
597599
target_compile_options(flang_static PRIVATE -fPIC)
598600
target_compile_options(flang_shared PRIVATE -fPIC)

0 commit comments

Comments
 (0)