mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 13:17:31 +00:00 
			
		
		
		
	cmake: Enhance target selection for ARM architectures with FPU (#4185)
Improve the target selection logic for ARM architectures in the NuttX platform configuration. * Added support for FPU detection in THUMB and ARM targets * Ensured correct target is set based on architecture and configuration options Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
		
							parent
							
								
									4e50d2191c
								
							
						
					
					
						commit
						79f26a96a4
					
				|  | @ -7,7 +7,19 @@ set(WAMR_BUILD_PLATFORM nuttx) | |||
| if(CONFIG_ARCH_ARMV6M) | ||||
|   set(WAMR_BUILD_TARGET THUMBV6M) | ||||
| elseif(CONFIG_ARCH_ARMV7A) | ||||
|   set(WAMR_BUILD_TARGET THUMBV7) | ||||
|   if(CONFIG_ARM_THUMB) | ||||
|     if(CONFIG_ARCH_FPU) | ||||
|       set(WAMR_BUILD_TARGET THUMBV7_VFP) | ||||
|     else() | ||||
|       set(WAMR_BUILD_TARGET THUMBV7) | ||||
|     endif() | ||||
|   else() | ||||
|     if(CONFIG_ARCH_FPU) | ||||
|       set(WAMR_BUILD_TARGET ARMV7_VFP) | ||||
|     else() | ||||
|       set(WAMR_BUILD_TARGET ARMV7) | ||||
|     endif() | ||||
|   endif() | ||||
| elseif(CONFIG_ARCH_ARMV7M) | ||||
|   set(WAMR_BUILD_TARGET THUMBV7EM) | ||||
| elseif(CONFIG_ARCH_ARMV8M) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Huang Qi
						Huang Qi