From 1b996a9a566a77a177842a91ee67a296593925f0 Mon Sep 17 00:00:00 2001 From: Robert Sipka Date: Wed, 10 Aug 2016 17:26:12 +0200 Subject: [PATCH] Remove needless toolchain files and variable settings. Unnecessary to set CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_PROCESSOR, these values are set by default. It also allows to use any C99-compliant compiler by using the default CC enviroment variable or by setting the CMAKE_C_COMPILER value using the build script's --cmake-param argument. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com --- cmake/toolchain_afl_i686.cmake | 20 -------------------- cmake/toolchain_afl_x86_64.cmake | 22 ---------------------- cmake/toolchain_darwin_x86_64.cmake | 20 -------------------- cmake/toolchain_linux_i686.cmake | 18 ------------------ cmake/toolchain_linux_x86_64.cmake | 20 -------------------- 5 files changed, 100 deletions(-) delete mode 100644 cmake/toolchain_afl_i686.cmake delete mode 100644 cmake/toolchain_afl_x86_64.cmake delete mode 100644 cmake/toolchain_darwin_x86_64.cmake delete mode 100644 cmake/toolchain_linux_i686.cmake delete mode 100644 cmake/toolchain_linux_x86_64.cmake diff --git a/cmake/toolchain_afl_i686.cmake b/cmake/toolchain_afl_i686.cmake deleted file mode 100644 index f4287b223..000000000 --- a/cmake/toolchain_afl_i686.cmake +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2015 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -include(CMakeForceCompiler) - -set(CMAKE_SYSTEM_NAME Linux) -set(CMAKE_SYSTEM_PROCESSOR i686) - -CMAKE_FORCE_C_COMPILER(afl-gcc GNU) diff --git a/cmake/toolchain_afl_x86_64.cmake b/cmake/toolchain_afl_x86_64.cmake deleted file mode 100644 index bfa4722d9..000000000 --- a/cmake/toolchain_afl_x86_64.cmake +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 2015 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -include(CMakeForceCompiler) - -set(CMAKE_SYSTEM_NAME Linux) -set(CMAKE_SYSTEM_PROCESSOR x86_64) - -CMAKE_FORCE_C_COMPILER(afl-gcc GNU) - -set(FLAGS_COMMON_ARCH -ffixed-rbp) diff --git a/cmake/toolchain_darwin_x86_64.cmake b/cmake/toolchain_darwin_x86_64.cmake deleted file mode 100644 index 2e78e304a..000000000 --- a/cmake/toolchain_darwin_x86_64.cmake +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2015-2016 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set(CMAKE_SYSTEM_NAME Darwin) -set(CMAKE_SYSTEM_PROCESSOR x86_64) - -find_program(CMAKE_C_COMPILER NAMES gcc cc) - -#set(FLAGS_COMMON_ARCH ) diff --git a/cmake/toolchain_linux_i686.cmake b/cmake/toolchain_linux_i686.cmake deleted file mode 100644 index 72dc746ff..000000000 --- a/cmake/toolchain_linux_i686.cmake +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2015-2016 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set(CMAKE_SYSTEM_NAME Linux) -set(CMAKE_SYSTEM_PROCESSOR i686) - -find_program(CMAKE_C_COMPILER NAMES i686-linux-gnu-gcc i686-unknown-linux-gnu-gcc) diff --git a/cmake/toolchain_linux_x86_64.cmake b/cmake/toolchain_linux_x86_64.cmake deleted file mode 100644 index db73e23e0..000000000 --- a/cmake/toolchain_linux_x86_64.cmake +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2015-2016 Samsung Electronics Co., Ltd. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set(CMAKE_SYSTEM_NAME Linux) -set(CMAKE_SYSTEM_PROCESSOR x86_64) - -find_program(CMAKE_C_COMPILER NAMES x86_64-linux-gnu-gcc x86_64-unknown-linux-gnu-gcc) - -set(FLAGS_COMMON_ARCH -ffixed-rbp)