Skip to content

Commit 48d19d7

Browse files
[flang][driver] add version to flang executable
1 parent fdd1196 commit 48d19d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flang/tools/flang-driver/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ clang_target_link_libraries(flang
2828
clangBasic
2929
)
3030

31+
# This creates the executable with a version appended
32+
# and creates a symlink to it without the version
33+
if(CYGWIN OR NOT WIN32) # but it doesn't work on Windows
34+
set_target_properties(flang PROPERTIES VERSION ${FLANG_EXECUTABLE_VERSION})
35+
endif()
36+
3137
option(FLANG_PLUGIN_SUPPORT "Build Flang with plugin support." ON)
3238

3339
# Enable support for plugins, which need access to symbols from flang

0 commit comments

Comments
 (0)