albertodemichelis / squirrel

Official repository for the programming language Squirrel
http://www.squirrel-lang.org
MIT License
926 stars 161 forks source link

Do not force using the C compiler as the linker #291

Closed ryandesign closed 4 weeks ago

ryandesign commented 3 months ago

Forcing the C compiler as the linker fails when linking sq_static because the C++ standard library does not get linked in. By not forcing this, CMake gets to choose which compiler to use as the linker based on the languages of the files that comprise what is being linked, and in this case it will choose to use the C++ compiler, fixing the problem.

Fixes #290