[llvm] r350457 - [gn build] Add build files for unittests under llvm/unittests/ExecutionEngine

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 4 20:05:26 PST 2019


Author: nico
Date: Fri Jan  4 20:05:25 2019
New Revision: 350457

URL: http://llvm.org/viewvc/llvm-project?rev=350457&view=rev
Log:
[gn build] Add build files for unittests under llvm/unittests/ExecutionEngine

Differential Revision: https://reviews.llvm.org/D56328

Added:
    llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/
    llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/BUILD.gn
    llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/
    llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn
    llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/
    llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn
Modified:
    llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn

Modified: llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn?rev=350457&r1=350456&r2=350457&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/BUILD.gn Fri Jan  4 20:05:25 2019
@@ -16,11 +16,9 @@ group("unittests") {
     "DebugInfo/MSF:DebugInfoMSFTests",
     "DebugInfo/PDB:DebugInfoPDBTests",
     "Demangle:DemangleTests",
-
-    # FIXME: Add.
-    #"ExecutionEngine:ExecutionEngineTests",
-    #"ExecutionEngine/MCJIT:MCJITTests",
-    #"ExecutionEngine/Orc:OrcJITTests",
+    "ExecutionEngine:ExecutionEngineTests",
+    "ExecutionEngine/MCJIT:MCJITTests",
+    "ExecutionEngine/Orc:OrcJITTests",
     "FuzzMutate:FuzzMutateTests",
     "IR:IRTests",
     "LineEditor:LineEditorTests",

Added: llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/BUILD.gn?rev=350457&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/BUILD.gn Fri Jan  4 20:05:25 2019
@@ -0,0 +1,16 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("ExecutionEngineTests") {
+  deps = [
+    "//llvm/lib/ExecutionEngine",
+    "//llvm/lib/ExecutionEngine/Interpreter",
+    "//llvm/lib/ExecutionEngine/Orc",
+    "//llvm/lib/ExecutionEngine/RuntimeDyld",
+    "//llvm/lib/IR",
+    "//llvm/lib/MC",
+    "//llvm/lib/Support",
+  ]
+  sources = [
+    "ExecutionEngineTest.cpp",
+  ]
+}

Added: llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn?rev=350457&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/MCJIT/BUILD.gn Fri Jan  4 20:05:25 2019
@@ -0,0 +1,29 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("MCJITTests") {
+  deps = [
+    "//llvm/lib/Analysis",
+    "//llvm/lib/ExecutionEngine",
+    "//llvm/lib/ExecutionEngine/MCJIT",
+    "//llvm/lib/ExecutionEngine/RuntimeDyld",
+    "//llvm/lib/IR",
+    "//llvm/lib/MC",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target",
+    "//llvm/lib/Target:NativeTarget",
+    "//llvm/lib/Transforms/IPO",
+    "//llvm/lib/Transforms/InstCombine",
+    "//llvm/lib/Transforms/Scalar",
+  ]
+  sources = [
+    "MCJITCAPITest.cpp",
+    "MCJITMemoryManagerTest.cpp",
+    "MCJITMultipleModuleTest.cpp",
+    "MCJITObjectCacheTest.cpp",
+    "MCJITTest.cpp",
+  ]
+
+  if (host_os == "win") {
+    sources += [ "MCJITTest.def" ]
+  }
+}

Added: llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn?rev=350457&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn Fri Jan  4 20:05:25 2019
@@ -0,0 +1,33 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("OrcJITTests") {
+  deps = [
+    "//llvm/lib/ExecutionEngine",
+    "//llvm/lib/ExecutionEngine/Orc",
+    "//llvm/lib/ExecutionEngine/RuntimeDyld",
+    "//llvm/lib/IR",
+    "//llvm/lib/Object",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target:NativeTarget",
+  ]
+  sources = [
+    "CoreAPIsTest.cpp",
+    "GlobalMappingLayerTest.cpp",
+    "IndirectionUtilsTest.cpp",
+    "JITTargetMachineBuilderTest.cpp",
+    "LazyCallThroughAndReexportsTest.cpp",
+    "LazyEmittingLayerTest.cpp",
+    "LegacyAPIInteropTest.cpp",
+    "LegacyCompileOnDemandLayerTest.cpp",
+    "LegacyRTDyldObjectLinkingLayerTest.cpp",
+    "ObjectTransformLayerTest.cpp",
+    "OrcCAPITest.cpp",
+    "OrcTestCommon.cpp",
+    "QueueChannel.cpp",
+    "RPCUtilsTest.cpp",
+    "RTDyldObjectLinkingLayerTest.cpp",
+    "RemoteObjectLayerTest.cpp",
+    "SymbolStringPoolTest.cpp",
+    "ThreadSafeModuleTest.cpp",
+  ]
+}




More information about the llvm-commits mailing list