mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 05:06:45 +00:00
[flang][nfc] Move external-hello-world
to flang/examples
As `external-hello-world` is not really a test, I am moving it from `flang/unittest/Runtime` to `flang/examples` (it makes a lot of sense as an example). I've not modified the source code (apart from adjusting the include paths). Differential Revision: https://reviews.llvm.org/D104320
This commit is contained in:
parent
a6be6e31f1
commit
062644bb39
@ -401,6 +401,7 @@ if (FLANG_BUILD_TOOLS)
|
||||
add_subdirectory(tools)
|
||||
endif()
|
||||
add_subdirectory(runtime)
|
||||
add_subdirectory(examples)
|
||||
|
||||
if (FLANG_INCLUDE_TESTS)
|
||||
add_subdirectory(test)
|
||||
|
8
flang/examples/CMakeLists.txt
Normal file
8
flang/examples/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
# 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
|
||||
)
|
@ -1,6 +1,6 @@
|
||||
#include "../../runtime/io-api.h"
|
||||
#include "../../runtime/main.h"
|
||||
#include "../../runtime/stop.h"
|
||||
#include "../runtime/io-api.h"
|
||||
#include "../runtime/main.h"
|
||||
#include "../runtime/stop.h"
|
||||
#include <cstring>
|
||||
#include <limits>
|
||||
|
@ -18,15 +18,6 @@ target_link_libraries(RuntimeTesting
|
||||
${llvm_libs}
|
||||
)
|
||||
|
||||
# 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_flang_nongtest_unittest(external-io
|
||||
RuntimeTesting
|
||||
FortranRuntime
|
||||
|
Loading…
x
Reference in New Issue
Block a user