解决gcc15的编译问题
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
# 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.
|
||||
# limitations under the License.
|
||||
|
||||
# Kernel type, e.g. "linux", "liteos_a", "liteos_m".
|
||||
kernel_type = "liteos_m"
|
||||
@@ -21,7 +21,7 @@ kernel_version = "3.0.0"
|
||||
board_cpu = ""
|
||||
|
||||
# Board arch, e.g. "armv7-a", "rv32imac".
|
||||
board_arch = "rv32i"
|
||||
board_arch = "rv32imc_zicsr"
|
||||
|
||||
# Toolchain name used for system compiling.
|
||||
# E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang, riscv32-unknown-elf.
|
||||
@@ -57,7 +57,11 @@ board_cflags = [
|
||||
"-fno-short-enums",
|
||||
"-D__LITEOS__M",
|
||||
"-nostartfiles",
|
||||
"-mstrict-align"
|
||||
"-mstrict-align",
|
||||
"-Wno-error=incompatible-pointer-types",
|
||||
"-Wno-error=implicit-function-declaration",
|
||||
"-Wno-error=maybe-uninitialized",
|
||||
"-Wno-error=int-in-bool-context"
|
||||
]
|
||||
|
||||
board_cxx_flags = board_cflags
|
||||
|
Reference in New Issue
Block a user