mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
ed22a2a78d
* Fix NullablePointer type constraint check being omitted in FFI declarations * Change to Steed's model of subtyping * Fix memory corruption with Array.chop and String.chop * Improve error message for match on structs * RFC 68: Mandatory FFI declarations * Change return type of String.add to String iso^ * Improve error message on destructuring of non-tuple types * Use built-in offset argument to cpointer * Add IsPrime checker to math package * Fix compiler crash related to type parameter references * Fix literal inference through partial function * Fix partial FFI declarations ignoring partial annotation * Fix symbol table patching for overriding default methods * Fix tuple related compiler segfaults * Create a standalone libponyc on Linux
15 lines
775 B
Diff
15 lines
775 B
Diff
diff --git a/src/libponyc/CMakeLists.txt b/src/libponyc/CMakeLists.txt
|
|
index bf2c385e..11d0d619 100644
|
|
--- a/src/libponyc/CMakeLists.txt
|
|
+++ b/src/libponyc/CMakeLists.txt
|
|
@@ -136,7 +136,7 @@ elseif(${CMAKE_HOST_SYSTEM_NAME} MATCHES "DragonFly")
|
|
else()
|
|
# add a rule to generate the standalone library if needed
|
|
add_custom_command(OUTPUT libponyc-standalone.a
|
|
- COMMAND cp `find /usr/lib/ -name 'libstdc++.a' -print -quit` libstdcpp.a
|
|
+ COMMAND cp `${CMAKE_CXX_COMPILER} --print-file-name='libstdc++.a'` libstdcpp.a
|
|
COMMAND echo "create libponyc-standalone.a" > standalone.mri
|
|
COMMAND echo "addlib ${PROJECT_SOURCE_DIR}/../../build/libs/lib/libblake2.a" >> standalone.mri
|
|
COMMAND echo "addlib libstdcpp.a" >> standalone.mri
|
|
|