File tree Expand file tree Collapse file tree 3 files changed +33
-11
lines changed Expand file tree Collapse file tree 3 files changed +33
-11
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /****************************************************************************
2
+ * apps/include/wasm/math.h
3
+ *
4
+ * Licensed to the Apache Software Foundation (ASF) under one or more
5
+ * contributor license agreements. See the NOTICE file distributed with
6
+ * this work for additional information regarding copyright ownership. The
7
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
8
+ * "License"); you may not use this file except in compliance with the
9
+ * License. You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
+ * License for the specific language governing permissions and limitations
17
+ * under the License.
18
+ *
19
+ ****************************************************************************/
20
+
21
+ #ifndef __INCLUDE_WASM_MATH_H
22
+ #define __INCLUDE_WASM_MATH_H
23
+
24
+ /****************************************************************************
25
+ * Included Files
26
+ ****************************************************************************/
27
+
28
+ /* Forwards math.h to nuttx/include/nuttx/lib/math.h */
29
+
30
+ #include <nuttx/lib/math.h>
31
+
32
+ #endif /* __INCLUDE_WASM_MATH_H */
Original file line number Diff line number Diff line change @@ -75,20 +75,12 @@ WAMR_MODE ?= INT
75
75
WSRCS := $(MAINSRC ) $(CSRCS )
76
76
WOBJS := $(WSRCS:=$(SUFFIX ) .wo )
77
77
78
- # Copy math.h from $(TOPDIR)/include/nuttx/lib/math.h to $(APPDIR)/include/wasm/math.h
79
- # Using declaration of math.h is OK for Wasm build
80
-
81
- $(APPDIR )$(DELIM ) include$(DELIM ) wasm$(DELIM ) math.h :
82
- ifeq ($(CONFIG_LIBM ) ,)
83
- $(call COPYFILE,$(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)lib$(DELIM)math.h,$@)
84
- endif
85
-
86
78
all :: $(WBIN )
87
79
88
80
$(BINDIR ) /wasm :
89
81
$(Q ) mkdir -p $(BINDIR ) /wasm
90
82
91
- depend :: $(APPDIR )$( DELIM ) include $( DELIM ) wasm $( DELIM ) math.h $( BINDIR ) /wasm
83
+ depend :: $(BINDIR ) /wasm
92
84
93
85
$(WOBJS ) : % .c$(SUFFIX ) .wo : % .c
94
86
$(Q ) $(WCC ) $(WCFLAGS ) -c $^ -o $@
@@ -108,7 +100,6 @@ $(WBIN): $(WOBJS)
108
100
clean ::
109
101
$(call DELFILE, $(WOBJS ) )
110
102
$(call DELFILE, $(WBIN ) )
111
- $(call DELFILE, $(APPDIR )$(DELIM ) include$(DELIM ) wasm$(DELIM ) math.h)
112
103
113
104
endif # WASM_BUILD
114
105
You can’t perform that action at this time.
0 commit comments