From: peter klausler Date: Sat, 19 Jan 2019 23:30:25 +0000 (-0800) Subject: [flang] Remove SHARED from add_library(), use cmake command line option instead X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d63306d7698f0d913dfe9f9c1a78bf9bea96e29;p=platform%2Fupstream%2Fllvm.git [flang] Remove SHARED from add_library(), use cmake command line option instead Original-commit: flang-compiler/f18@6644c799a7dc583331bea9853700c2ba69bbab4e Reviewed-on: https://github.com/flang-compiler/f18/pull/265 Tree-same-pre-rewrite: false --- diff --git a/flang/lib/common/CMakeLists.txt b/flang/lib/common/CMakeLists.txt index 30a32b9..b76033f 100644 --- a/flang/lib/common/CMakeLists.txt +++ b/flang/lib/common/CMakeLists.txt @@ -12,8 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_library(FortranCommon SHARED +add_library(FortranCommon default-kinds.cc idioms.cc ) - diff --git a/flang/lib/evaluate/CMakeLists.txt b/flang/lib/evaluate/CMakeLists.txt index ac1c914..ce53274 100644 --- a/flang/lib/evaluate/CMakeLists.txt +++ b/flang/lib/evaluate/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_library(FortranEvaluate SHARED +add_library(FortranEvaluate call.cc common.cc complex.cc diff --git a/flang/lib/parser/CMakeLists.txt b/flang/lib/parser/CMakeLists.txt index 1fb5cd1..090ffbf 100644 --- a/flang/lib/parser/CMakeLists.txt +++ b/flang/lib/parser/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_library(FortranParser SHARED +add_library(FortranParser char-buffer.cc char-set.cc characters.cc diff --git a/flang/lib/semantics/CMakeLists.txt b/flang/lib/semantics/CMakeLists.txt index 42304a9..0f55e85 100644 --- a/flang/lib/semantics/CMakeLists.txt +++ b/flang/lib/semantics/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_library(FortranSemantics SHARED +add_library(FortranSemantics assignment.cc attr.cc canonicalize-do.cc diff --git a/flang/runtime/CMakeLists.txt b/flang/runtime/CMakeLists.txt index 72b6945c..72fd634 100644 --- a/flang/runtime/CMakeLists.txt +++ b/flang/runtime/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -add_library(FortranRuntime SHARED +add_library(FortranRuntime ISO_Fortran_binding.cc derived-type.cc descriptor.cc