Comments (6)
I aimed to simplify the process by treating emcc
as a cross-compiler, thereby tweaking the build rules. If you have any proposed changes, please don't hesitate to submit them.
from rv32emu.
May I know the concern of the way to check which compiler was used in mk/toolchain.mk of commit ? @jserv
from rv32emu.
The commit f484a4b was used as the workaround for Apple LLVM toolchain, and the above resulted from incorrect detection of toolchain built upon clang or gcc.
from rv32emu.
The commit f484a4b was used as the workaround for Apple LLVM toolchain, and the above resulted from incorrect detection of toolchain built upon clang or gcc.
The version of Apple LLVM toolchain of my machine is Homebrew clang version 17.0.6
(run clang --version | head -n 1
) and I am able to detect clang
and build rv32emu with it. May I know the Apple LLVM toolchain of your machine?
from rv32emu.
The version of Apple LLVM toolchain of my machine is
Homebrew clang version 17.0.6
(runclang --version | head -n 1
) and I am able to detectclang
and build rv32emu with it. May I know the Apple LLVM toolchain of your machine?
The workaround was applied to Xcode 15.
See commit 618d4f1
from rv32emu.
I think we are referring to different things. Let me rephrase the question:
May I know the concern of changing from this
ifneq ($(shell $(CC) --version | head -n 1 | grep emcc),)
CC_IS_EMCC := 1
else ifneq ($(shell $(CC) --version | head -n 1 | grep clang),)
CC_IS_CLANG := 1
else
ifneq ($(shell $(CC) --version | grep "Free Software Foundation"),)
CC_IS_GCC := 1
endif
endif
to this in this commit f484a4b?
ifneq ($(shell $(CC) --version | head -n 1 | grep emcc),)
CC_IS_EMCC := 1
endif
ifneq ($(shell $(CC) --version | head -n 1 | grep clang),)
CC_IS_CLANG := 1
endif
ifneq ($(shell $(CC) --version | grep "Free Software Foundation"),)
CC_IS_GCC := 1
endif
Note that the former will successfully build with emcc
.
from rv32emu.
Related Issues (20)
- Use the canonical order of RISC-V extension names in the repository description
- jit: Flush the code cache when it is full
- Failed to build using emcc when ENABLE_SDL=1 is set outside macOS HOT 2
- Help with the Emulator HOT 13
- Filter out message-less demo programs from WebAssembly demo page HOT 1
- jit: Fail to run recursive programs
- smolnes.elf cannot be executed and no "inferior exit code 0" output to indicate that a process has completed in the rv32emu-demo
- CI: WebAssembly action failed when PR merged HOT 1
- Trigger WebAssembly CI when embedded ELF executables has been rebuilt
- Calling close() system call with fd < 3
- Crash when the memory on host is insufficient HOT 4
- Keep prebuilt ELF files up to date HOT 5
- CI: Setup self-hosted GitHub Actions runner HOT 6
- Don't check out softfloat if no F extension is configured HOT 4
- A segmentation fault occurs when running a simple ELF file HOT 9
- jit: bug if the registers of the source and linkage registers of `JALR`, `CJALR` instructions are same
- Improve the build system, making it more flexible
- jit: Build failure if no LLVM is found
- jit: Fail to run SciMark2 on darwin-arm64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rv32emu.