-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69a27e8
commit ea73953
Showing
5 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
MACOSX_SDK_VERSION: # [osx and x86_64] | ||
- "10.12" # [osx and x86_64] | ||
- "10.13" # [osx and x86_64] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/src/runtime/legacy/CMakeLists.txt b/src/runtime/legacy/CMakeLists.txt | ||
index 7eff9c5..fdab1a8 100644 | ||
--- a/src/runtime/legacy/CMakeLists.txt | ||
+++ b/src/runtime/legacy/CMakeLists.txt | ||
@@ -1,5 +1,5 @@ | ||
set(SRC | ||
- ../../../src/libasr/runtime/lfortran_intrinsics.c | ||
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../src/libasr/runtime/lfortran_intrinsics.c | ||
) | ||
|
||
if(WIN32) | ||
@@ -33,16 +33,18 @@ if(WITH_TARGET_WASM) | ||
endif() | ||
|
||
if (DEFINED ENV{EMSDK_PATH}) | ||
- add_custom_command(OUTPUT lfortran_runtime_wasm_emcc.o | ||
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/lfortran_runtime_wasm_emcc.o | ||
COMMAND $ENV{EMSDK_PATH}/upstream/emscripten/emcc -I${libasr_SOURCE_DIR}/.. -DCOMPILE_TO_WASM | ||
- -c --target=wasm32-unknown-emscripten ${SRC} -o lfortran_runtime_wasm_emcc.o | ||
+ -c --target=wasm32-unknown-emscripten ${SRC} -o ${CMAKE_CURRENT_SOURCE_DIR}/lfortran_runtime_wasm_emcc.o | ||
COMMENT "Cross compiling lfortran_intrinscs.c to lfortran_runtime_wasm_emcc.o" | ||
DEPENDS ${SRC}) | ||
- add_custom_target(lfortran_runtime_wasm_emcc ALL DEPENDS lfortran_runtime_wasm_emcc.o) | ||
- install(FILES lfortran_runtime_wasm_emcc.o | ||
+ add_custom_target(lfortran_runtime_wasm_emcc ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/lfortran_runtime_wasm_emcc.o) | ||
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/lfortran_runtime_wasm_emcc.o | ||
DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
- install(FILES lfortran_runtime_wasm_emcc.o | ||
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/lfortran_runtime_wasm_emcc.o | ||
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/..) | ||
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/lfortran_runtime_wasm_emcc.o | ||
+ DESTINATION ${CMAKE_BINARY_DIR}) | ||
endif() | ||
|
||
if (DEFINED ENV{WASI_SDK_PATH}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/libasr/CMakeLists.txt b/src/libasr/CMakeLists.txt | ||
index aaf9db9..7f981a8 100644 | ||
--- a/src/libasr/CMakeLists.txt | ||
+++ b/src/libasr/CMakeLists.txt | ||
@@ -12,7 +12,7 @@ if (NOT LFORTRAN_VERSION) | ||
CACHE STRING "LFortran version" FORCE) | ||
endif () | ||
|
||
-configure_file(config.h.in config.h) | ||
+configure_file(config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h) | ||
|
||
set(SRC | ||
codegen/asr_to_cpp.cpp |