llvm/flang/examples/CMakeLists.txt
Stuart Ellis 520e5db26a [flang][driver] Add print function name Plugin example
Replacing Hello World example Plugin with one that counts and prints the names of
functions and subroutines.
This involves changing the `PluginParseTreeAction` Plugin base class to
inherit from `PrescanAndSemaAction` class to get access to the Parse Tree
so that the Plugin can walk it.
Additionally, there are tests of this new Plugin to check it prints the correct
things in different circumstances.

Depends on: D106137

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D107089
2021-08-19 08:25:34 +00:00

15 lines
286 B
CMake

if(NOT FLANG_BUILD_EXAMPLES)
set(EXCLUDE_FROM_ALL ON)
endif()
# This test is not run by default as it requires input.
add_executable(external-hello-world
external-hello.cpp
)
target_link_libraries(external-hello-world
FortranRuntime
)
add_subdirectory(PrintFlangFunctionNames)