[flang] Add SHARED to add_library() invocations so f18 libraries are always built...
authorpeter klausler <pklausler@nvidia.com>
Sat, 19 Jan 2019 22:57:04 +0000 (14:57 -0800)
committerpeter klausler <pklausler@nvidia.com>
Wed, 23 Jan 2019 00:31:20 +0000 (16:31 -0800)
Original-commit: flang-compiler/f18@060ced04c74b8796c7621a29da86ee2051d3ccba
Reviewed-on: https://github.com/flang-compiler/f18/pull/265
Tree-same-pre-rewrite: false

flang/lib/common/CMakeLists.txt
flang/lib/evaluate/CMakeLists.txt
flang/lib/parser/CMakeLists.txt
flang/lib/semantics/CMakeLists.txt
flang/runtime/CMakeLists.txt

index aeecaf1..30a32b9 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_library(FortranCommon
+add_library(FortranCommon SHARED
   default-kinds.cc
   idioms.cc
 )
index ce53274..ac1c914 100644 (file)
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_library(FortranEvaluate
+add_library(FortranEvaluate SHARED
   call.cc
   common.cc
   complex.cc
index cd439f7..1fb5cd1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2018, NVIDIA CORPORATION.  All rights reserved.
+# Copyright (c) 2018-2019, NVIDIA CORPORATION.  All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_library(FortranParser
+add_library(FortranParser SHARED
   char-buffer.cc
   char-set.cc
   characters.cc
index 6e0b348..42304a9 100644 (file)
@@ -12,8 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
-add_library(FortranSemantics
+add_library(FortranSemantics SHARED
   assignment.cc
   attr.cc
   canonicalize-do.cc
index 0e90f41..72b6945 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2018, NVIDIA CORPORATION.  All rights reserved.
+# Copyright (c) 2018-2019, NVIDIA CORPORATION.  All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_library(FortranRuntime
+add_library(FortranRuntime SHARED
   ISO_Fortran_binding.cc
   derived-type.cc
   descriptor.cc