Browse Source

!433 [MS]build.bat add license head

Merge pull request !433 from chenjianping/eliminate-securec-warning
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 5 years ago
parent
commit
06446ba1d5
2 changed files with 15 additions and 6 deletions
  1. +14
    -0
      build.bat
  2. +1
    -6
      third_party/securec/CMakeLists.txt

+ 14
- 0
build.bat View File

@@ -1,3 +1,17 @@
@rem Copyright 2020 Huawei Technologies Co., Ltd
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem ============================================================================
@echo off
@title mindspore_build


+ 1
- 6
third_party/securec/CMakeLists.txt View File

@@ -8,12 +8,7 @@ SET(CMAKE_C_FLAGS_RELEASE "$ENV{CFLAGS} -fPIC -O3 -Wall -Wno-deprecated-declarat
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

#add flags
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include -Werror")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include -Werror")

include_directories(./include)
add_subdirectory(src)

Loading…
Cancel
Save