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

build fails if CMAKE_C(XX)_FLAGS is not empty #188

Open
jhgoebbert opened this issue Nov 24, 2023 · 0 comments
Open

build fails if CMAKE_C(XX)_FLAGS is not empty #188

jhgoebbert opened this issue Nov 24, 2023 · 0 comments

Comments

@jhgoebbert
Copy link

jhgoebbert commented Nov 24, 2023

Hi everyone,

If cmake is used to configure the build with a non-empty CMAKE_C_FLAGS (or CMAKE_CXX_FLAGS) like

cmake -DCMAKE_C_FLAGS:STRING='-O2' ..

xcodeeml-tools cannot handle that and the build fails:

[ 40%] Building C object F-FrontEnd/src/CMakeFiles/ffront.dir/C-expr-mem.c.o
cc: fatal error: no input files
compilation terminated.
/bin/sh: -Werror: command not found
make[2]: *** [F-FrontEnd/src/CMakeFiles/ffront.dir/build.make:93: F-FrontEnd/src/CMakeFiles/ffront.dir/C-expr-mem.c.o] Error 127
make[1]: *** [CMakeFiles/Makefile2:576: F-FrontEnd/src/CMakeFiles/ffront.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@jhgoebbert jhgoebbert changed the title build fails if CMAKE_C_FLAGS is not empty build fails if CMAKE_C(XX)_FLAGS is not empty Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant