Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

固定编译器选项比较合适,否则选项越多,需要写兼容选项就越多 #44

Closed
jingjingxyk opened this issue Apr 24, 2023 · 1 comment
Labels
question Further information is requested

Comments

@jingjingxyk
Copy link
Contributor

linux x86_64 debian 环境下

# 1
./bin/spc build gd,zlib  --cc=gcc       --cxx=g++ --build-cli  --debug
# 2
./bin/spc build gd,zlib  --cc=musl-gcc  --cxx=g++ --build-cli --debug
# 3 
./bin/spc build gd,zlib  --cc=clang     --cxx=clang++ --build-cli --debug

每个都 需要解决不同的编译问题!

比如第2种:
image

@jingjingxyk jingjingxyk changed the title 还是固定类型的编译器比较合适,否则,需要写很多兼容选项 固定编译器选项比较合适,否则选项越多,需要写兼容选项就越多 Apr 24, 2023
@crazywhalecc
Copy link
Owner

目前来说就是固定的,Linux 统一使用 musl-gcc,macOS 使用 clang。但有个特殊的地方在于,alpine linux 下 gcc 就是 musl-gcc,没有 musl-gcc 这个命令,所以需要特殊指定一下命令。但这并不需要特殊考虑和兼容多个编译器,只是命令名称上的差别。

@crazywhalecc crazywhalecc added the question Further information is requested label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants